]> git.immae.eu Git - perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git/blob - sources/plugins/imagebrowser/plugin.js
Initial commit
[perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git] / sources / plugins / imagebrowser / plugin.js
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 });