Changeset 2679:bae19d3adbc4 for plugins/dcLegacyEditor
- Timestamp:
- 03/05/14 21:04:23 (11 years ago)
- Branch:
- default
- Location:
- plugins/dcLegacyEditor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcLegacyEditor/_admin.php
r2614 r2679 23 23 24 24 if ($self_ns->active) { 25 $core->addBehavior('adminPostEditor',array('dcLegacyEditorBehaviors','adminPostEditor')); 26 $core->addBehavior('adminPopupMedia',array('dcLegacyEditorBehaviors','adminPopupMedia')); 27 $core->addBehavior('adminPopupLink',array('dcLegacyEditorBehaviors','adminPopupLink')); 28 $core->addBehavior('adminPopupPosts',array('dcLegacyEditorBehaviors','adminPopupPosts')); 25 $wiki2xhtml = new wiki2xhtml(); 26 27 $core->addEditorFormater('dcLegacyEditor','xhtml',create_function('$s','return $s;')); 28 $core->addEditorFormater('dcLegacyEditor','wiki',array($wiki2xhtml,'transform')); 29 30 $core->addBehavior('adminPostEditor',array('dcLegacyEditorBehaviors','adminPostEditor')); 31 $core->addBehavior('adminPopupMedia',array('dcLegacyEditorBehaviors','adminPopupMedia')); 32 $core->addBehavior('adminPopupLink',array('dcLegacyEditorBehaviors','adminPopupLink')); 33 $core->addBehavior('adminPopupPosts',array('dcLegacyEditorBehaviors','adminPopupPosts')); 29 34 } -
plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php
r2614 r2679 15 15 protected static $p_url = 'index.php?pf=dcLegacyEditor'; 16 16 17 public static function adminPostEditor() { 17 public static function adminPostEditor($editor) { 18 if ($editor!='dcLegacyEditor') {return;} 19 18 20 return 19 21 self::jsToolBar().
Note: See TracChangeset
for help on using the changeset viewer.