aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/imagebrowser/plugin.js
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-01-25 17:45:33 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-01-25 18:00:33 +0100
commit7adcb81e4f83f98c468889aaa5a85558ba88c770 (patch)
tree0d6ede733777b29060b48df4afaa2c64bfbae276 /sources/plugins/imagebrowser/plugin.js
downloadconnexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.tar.gz
connexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.tar.zst
connexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.zip
Initial commit4.5.6
Diffstat (limited to 'sources/plugins/imagebrowser/plugin.js')
-rw-r--r--sources/plugins/imagebrowser/plugin.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/plugins/imagebrowser/plugin.js b/sources/plugins/imagebrowser/plugin.js
new file mode 100644
index 00000000..419b6881
--- /dev/null
+++ b/sources/plugins/imagebrowser/plugin.js
@@ -0,0 +1,14 @@
1CKEDITOR.plugins.add('imagebrowser', {
2 "init": function (editor) {
3 if (typeof(editor.config.imageBrowser_listUrl) === 'undefined' || editor.config.imageBrowser_listUrl === null) {
4 return;
5 }
6
7 var url = editor.plugins.imagebrowser.path + "browser/browser.html?listUrl=" + encodeURIComponent(editor.config.imageBrowser_listUrl);
8 if (editor.config.baseHref) {
9 url += "&baseHref=" + encodeURIComponent(editor.config.baseHref);
10 }
11
12 editor.config.filebrowserImageBrowseUrl = url;
13 }
14});