public function n1ed::addControlsToForm in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8
Adds controls to form using this class methods.
Overrides N1EDEcosystemCKEditorPlugin::addControlsToForm
File
- src/
Plugin/ CKEditorPlugin/ n1ed.php, line 49
Class
- n1ed
- Defines plugin.
Namespace
Drupal\n1ed\Plugin\CKEditorPluginCode
public function addControlsToForm(&$form, $editor, $config) {
$this
->addBooleanToForm($form, $config, "enableN1ED", true);
$this
->addJsonToForm($form, $config, "ui", "");
$this
->addJsonToForm($form, $config, "preview", "");
$this
->addJsonToForm($form, $config, "include", "");
$this
->addJsonToForm($form, $config, "widgetList", "");
$this
->addJsonToForm($form, $config, "widgets", "");
}