diff options
Diffstat (limited to 'sources/plugins/imagebrowser/plugin.js')
-rw-r--r-- | sources/plugins/imagebrowser/plugin.js | 14 |
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 @@ | |||
1 | CKEDITOR.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 | }); | ||