Changeset 3003:f8c097e1f7c5 for plugins/dcLegacyEditor
- Timestamp:
- 05/02/15 13:57:50 (10 years ago)
- Branch:
- default
- Location:
- plugins/dcLegacyEditor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php
r2856 r3003 15 15 protected static $p_url = 'index.php?pf=dcLegacyEditor'; 16 16 17 18 19 20 21 22 23 17 /** 18 * adminPostEditor add javascript to the DOM to load ckeditor depending on context 19 * 20 * @param editor <b>string</b> wanted editor 21 * @param context <b>string</b> page context (post,page,comment,event,...) 22 * @param tags <b>array</b> array of ids to inject editor 23 */ 24 24 public static function adminPostEditor($editor='',$context='',array $tags=array()) { 25 25 if (empty($editor) || $editor!='dcLegacyEditor') {return;} … … 61 61 if (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('enable_wysiwyg')) { 62 62 $res .= '<script type="text/javascript" src="'.self::$p_url.'/js/jsToolBar/jsToolBar.wysiwyg.js"></script>'; 63 63 } 64 64 65 65 $res .= … … 132 132 } 133 133 134 $res .= "jsToolBar.prototype.toolbar_bottom = ". 135 (isset($GLOBALS['core']->auth) && $GLOBALS['core']->auth->getOption('toolbar_bottom') ? 'true' : 'false').";\n"; 136 134 137 $res .= 135 138 "\n//]]>\n". -
plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.js
r2614 r3003 41 41 this.toolbar = document.createElement("div"); 42 42 this.toolbar.className = 'jstElements'; 43 this.editor.parentNode.insertBefore(this.toolbar,this.editor); 43 44 if (this.toolbar_bottom) { 45 this.editor.parentNode.insertBefore(this.toolbar,this.editor.nextSibling); 46 } else { 47 this.editor.parentNode.insertBefore(this.toolbar,this.editor); 48 } 44 49 45 50 // Dragable resizing (only for gecko) … … 142 147 mode: 'xhtml', 143 148 elements: {}, 149 toolbar_bottom: false, 144 150 145 151 getMode: function() {
Note: See TracChangeset
for help on using the changeset viewer.