Commit 4ba76c8c by Frédéric

Test

parent 9c22a731
# Default path
default_file_path: "files"
plugins:
- dialog
- colordialog
......@@ -38,13 +38,15 @@ class CkEditorEmbedPluginsExtension extends SimpleExtension
->setZone(Zone::BACKEND),
Snippet::create()
->setCallback([$this, 'loadConfig'])
->setLocation(Target::AFTER_META)
->setPriority(5)
->setLocation(Target::BEFORE_BODY_JS)
->setPriority(999)
->setZone(Zone::BACKEND),
];
}
public function loadConfig() {
return '<meta name="ckeditor-config" content="plop, coin, plopcoin" />';
return '<script type="text/javascript">
const ckeditorPlugins = ['.$this->getConfig()["plugins"].'];
</script>';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment