Commit 4ba76c8c by Frédéric

Test

parent 9c22a731
# Default path plugins:
default_file_path: "files" - dialog
- colordialog
...@@ -38,13 +38,15 @@ class CkEditorEmbedPluginsExtension extends SimpleExtension ...@@ -38,13 +38,15 @@ class CkEditorEmbedPluginsExtension extends SimpleExtension
->setZone(Zone::BACKEND), ->setZone(Zone::BACKEND),
Snippet::create() Snippet::create()
->setCallback([$this, 'loadConfig']) ->setCallback([$this, 'loadConfig'])
->setLocation(Target::AFTER_META) ->setLocation(Target::BEFORE_BODY_JS)
->setPriority(5) ->setPriority(999)
->setZone(Zone::BACKEND), ->setZone(Zone::BACKEND),
]; ];
} }
public function loadConfig() { 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