Ticket #23235: 23235.patch
| File 23235.patch, 761 bytes (added by , 13 years ago) |
|---|
-
wp-admin/js/editor.js
49 49 if ( ed && ed.isHidden() ) 50 50 return false; 51 51 52 if ( ed ) 52 if ( ed ) { 53 53 ed.hide(); 54 } else { 55 // The TinyMCE instance doesn't exist, run the content through "pre_wpautop()" and show the textarea 56 if ( tinyMCEPreInit.mceInit[id] && tinyMCEPreInit.mceInit[id].wpautop ) 57 txtarea_el.value = t.pre_wpautop( txtarea_el.value ); 54 58 59 dom.setStyles(txtarea_el, {'display': '', 'visibility': ''}); 60 } 61 55 62 dom.removeClass(wrap_id, 'tmce-active'); 56 63 dom.addClass(wrap_id, 'html-active'); 57 64 setUserSetting('editor', 'html');