Commit d4603b8c by Simon

Update ckeditor-plugins.js

parent e4bd0139
...@@ -4,8 +4,8 @@ if (typeof CKEDITOR !== 'undefined') { ...@@ -4,8 +4,8 @@ if (typeof CKEDITOR !== 'undefined') {
jQuery(document).ready(function ($) { jQuery(document).ready(function ($) {
var CKEDITORPluginExtras = false; var CKEDITORPluginExtras = false;
if (typeof(CKEDITOR) != 'undefined') { if (typeof(CKEDITOR) != 'undefined') {
console.log(ckeditorPlugins);
if(typeof ckeditorPluginsPath !== 'undefined' && typeof ckeditorPlugins !== 'undefined') {
for (const plugin of ckeditorPlugins) { for (const plugin of ckeditorPlugins) {
CKEDITOR.plugins.addExternal(plugin, `${ckeditorPluginsPath}/${plugin}/`, 'plugin.js'); CKEDITOR.plugins.addExternal(plugin, `${ckeditorPluginsPath}/${plugin}/`, 'plugin.js');
} }
...@@ -29,5 +29,8 @@ jQuery(document).ready(function ($) { ...@@ -29,5 +29,8 @@ jQuery(document).ready(function ($) {
CKEDITORPluginExtras = true; CKEDITORPluginExtras = true;
}); });
} else {
console.error('Ckeditor-embed-plugin: Path or plugins not defined')
}
} }
}); });
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