]> git.immae.eu Git - perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git/blame - sources/plugins/imagebrowser/plugin.js
Initial commit
[perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git] / sources / plugins / imagebrowser / plugin.js
CommitLineData
7adcb81e
IB
1CKEDITOR.plugins.add('imagebrowser', {\r
2 "init": function (editor) {\r
3 if (typeof(editor.config.imageBrowser_listUrl) === 'undefined' || editor.config.imageBrowser_listUrl === null) {\r
4 return;\r
5 }\r
6\r
7 var url = editor.plugins.imagebrowser.path + "browser/browser.html?listUrl=" + encodeURIComponent(editor.config.imageBrowser_listUrl);\r
8 if (editor.config.baseHref) {\r
9 url += "&baseHref=" + encodeURIComponent(editor.config.baseHref);\r
10 }\r
11\r
12 editor.config.filebrowserImageBrowseUrl = url;\r
13 }\r
14});\r