string wanted editor * @param context string page context (post,page,comment,event,...) * @param tags array array of ids into inject editor */ public static function adminPostEditor($editor='',$context='',array $tags=array()) { if (empty($editor) || $editor!='dcCKEditor') { return;} $config_js = self::$config_url; if (!empty($context)) { $config_js .= '&context='.$context; } return '\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 adminMediaURLParams($p) { if (!empty($_GET['editor'])) { $p['editor']=html::sanitiseURL($_GET['editor']); } } public static function getTagsContext() { return self::$tagsContext; } }