mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-15 14:41:05 +00:00
first commit
This commit is contained in:
14
lib/ckeditor4/plugins/imagebrowser/plugin.js
Executable file
14
lib/ckeditor4/plugins/imagebrowser/plugin.js
Executable file
@@ -0,0 +1,14 @@
|
||||
CKEDITOR.plugins.add('imagebrowser', {
|
||||
"init": function (editor) {
|
||||
if (typeof(editor.config.imageBrowser_listUrl) === 'undefined' || editor.config.imageBrowser_listUrl === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
var url = editor.plugins.imagebrowser.path + "browser/browser.html?listUrl=" + encodeURIComponent(editor.config.imageBrowser_listUrl);
|
||||
if (editor.config.baseHref) {
|
||||
url += "&baseHref=" + encodeURIComponent(editor.config.baseHref);
|
||||
}
|
||||
|
||||
editor.config.filebrowserImageBrowseUrl = url;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user