Legend:
- Unmodified
- Added
- Removed
-
plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php
r3003 r3021 27 27 return 28 28 self::jsToolBar(). 29 dcPage::jsLoad( self::$p_url.'/js/_post_editor.js').29 dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/_post_editor.js')). 30 30 '<script type="text/javascript">'."\n". 31 31 "//<![CDATA[\n". … … 39 39 if (empty($editor) || $editor!='dcLegacyEditor') {return;} 40 40 41 return dcPage::jsLoad( self::$p_url.'/js/jsToolBar/popup_media.js');41 return dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/popup_media.js')); 42 42 } 43 43 … … 45 45 if (empty($editor) || $editor!='dcLegacyEditor') {return;} 46 46 47 return dcPage::jsLoad( self::$p_url.'/js/jsToolBar/popup_link.js');47 return dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/popup_link.js')); 48 48 } 49 49 … … 51 51 if (empty($editor) || $editor!='dcLegacyEditor') {return;} 52 52 53 return dcPage::jsLoad( self::$p_url.'/js/jsToolBar/popup_posts.js');53 return dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/popup_posts.js')); 54 54 } 55 55 56 56 protected static function jsToolBar() { 57 57 $res = 58 '<link rel="stylesheet" type="text/css" href="'.self::$p_url.'/css/jsToolBar/jsToolBar.css" />'.59 '<script type="text/javascript" src="'.self::$p_url.'/js/jsToolBar/jsToolBar.js"></script>';58 dcPage::cssLoad(dcPage::getPF('dcLegacyEditor/css/jsToolBar/jsToolBar.css')). 59 dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.js')); 60 60 61 61 if (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('enable_wysiwyg')) { 62 $res .= '<script type="text/javascript" src="'.self::$p_url.'/js/jsToolBar/jsToolBar.wysiwyg.js"></script>';62 $res .= dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.wysiwyg.js')); 63 63 } 64 64 65 65 $res .= 66 '<script type="text/javascript" src="'.self::$p_url.'/js/jsToolBar/jsToolBar.dotclear.js"></script>'.66 dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.dotclear.js')). 67 67 '<script type="text/javascript">'."\n". 68 68 "//<![CDATA[\n".
Note: See TracChangeset
for help on using the changeset viewer.