Changeset 2856:b9ae6bf9bd6e for plugins/dcLegacyEditor/inc
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php
r2854 r2856 22 22 * @param tags <b>array</b> array of ids to inject editor 23 23 */ 24 24 public static function adminPostEditor($editor='',$context='',array $tags=array()) { 25 25 if (empty($editor) || $editor!='dcLegacyEditor') {return;} 26 27 // context and tags are not used for dcLegacyEditor28 26 29 27 return 30 28 self::jsToolBar(). 31 dcPage::jsLoad(self::$p_url.'/js/_post_editor.js'); 29 dcPage::jsLoad(self::$p_url.'/js/_post_editor.js'). 30 '<script type="text/javascript">'."\n". 31 "//<![CDATA[\n". 32 dcPage::jsVar('dotclear.legacy_editor_context', $context). 33 'dotclear.legacy_editor_tags_context = '.sprintf('{%s:["%s"]};'."\n", $context, implode('","', $tags)). 34 "\n//]]>\n". 35 "</script>\n"; 32 36 } 33 37 … … 57 61 if (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('enable_wysiwyg')) { 58 62 $res .= '<script type="text/javascript" src="'.self::$p_url.'/js/jsToolBar/jsToolBar.wysiwyg.js"></script>'; 59 63 } 60 64 61 65 $res .=
Note: See TracChangeset
for help on using the changeset viewer.