Commit 08be1ed0 by Simon

Update CkEditorEmbedPluginsExtension.php

parent f8ff02d2
...@@ -51,7 +51,7 @@ class CkEditorEmbedPluginsExtension extends SimpleExtension ...@@ -51,7 +51,7 @@ class CkEditorEmbedPluginsExtension extends SimpleExtension
if (empty($config['plugins']) && !empty($config['public_path'])) { if (empty($config['plugins']) && !empty($config['public_path'])) {
return ''; return '';
} }
return '<script type="text/javascript"> return '<script>
const ckeditorPluginsPath = "'.$config['public_path'].'"; const ckeditorPluginsPath = "'.$config['public_path'].'";
const ckeditorPlugins = '.\json_encode($config['plugins']).'; const ckeditorPlugins = '.\json_encode($config['plugins']).';
</script>'; </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