'."\n". "//blog->host). dcPage::jsVar('dotclear.dcckeditor_plugin_url',DC_ADMIN_URL.self::$p_url). 'CKEDITOR_GETURL = function(resource) { // If this is not a full or absolute path. if ( resource.indexOf(":/") == -1 && resource.indexOf("/") !== 0 ) { resource = this.basePath + resource; } return resource; };'. "dotclear.msg.img_select_title = '".html::escapeJS(__('Media chooser'))."'; ". "dotclear.msg.post_link_title = '".html::escapeJS(__('Link to an entry'))."'; ". "dotclear.msg.link_title = '".html::escapeJS(__('Link'))."'; ". "\n//]]>\n". "\n". dcPage::jsLoad(self::$p_url.'/js/ckeditor/ckeditor.js'). dcPage::jsLoad(self::$p_url.'/js/ckeditor/adapters/jquery.js'). dcPage::jsLoad($config_js); } public static function adminPopupMedia($editor='') { if (empty($editor) || $editor!='dcCKEditor') { return;} return dcPage::jsLoad(self::$p_url.'/js/popup_media.js'); } public static function adminPopupLink($editor='') { if (empty($editor) || $editor!='dcCKEditor') { return;} return dcPage::jsLoad(self::$p_url.'/js/popup_link.js'); } public static function adminPopupPosts($editor='') { if (empty($editor) || $editor!='dcCKEditor') { return;} return dcPage::jsLoad(self::$p_url.'/js/popup_posts.js'); } public static function adminMediaURL($url) { if (!empty($_GET['editor'])) { $url .= '&editor='.$_GET['editor']; } return $url; } }