aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/imagebrowser/plugin.js
blob: 419b688184d00dab1123b7e43ae20230ae3182ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
	}
});