mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@19054 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
|
||||
var switchEditors = {
|
||||
|
||||
|
||||
go: function(a) {
|
||||
var t = this, aid = a.id, l = aid.length, id = aid.substr(0, l - 5), mode = aid.substr(l - 4),
|
||||
ed = tinyMCE.get(id), wrap_id = 'wp-'+id+'-wrap', dom = tinymce.DOM, txtarea_el = dom.get(id);
|
||||
|
||||
|
||||
if ( 'tmce' == mode ) {
|
||||
if ( ed && ! ed.isHidden() )
|
||||
return false;
|
||||
@@ -14,7 +14,7 @@ var switchEditors = {
|
||||
|
||||
if ( tinyMCEPreInit.mceInit[id] && tinyMCEPreInit.mceInit[id].wpautop )
|
||||
txtarea_el.value = t.wpautop( txtarea_el.value );
|
||||
|
||||
|
||||
if ( ed ) {
|
||||
ed.show();
|
||||
} else {
|
||||
@@ -25,12 +25,12 @@ var switchEditors = {
|
||||
dom.removeClass(wrap_id, 'html-active');
|
||||
dom.addClass(wrap_id, 'tmce-active');
|
||||
setUserSetting('editor', 'tinymce');
|
||||
|
||||
|
||||
} else if ( 'html' == mode ) {
|
||||
|
||||
if ( ed && ed.isHidden() )
|
||||
return false;
|
||||
|
||||
|
||||
if ( ed ) {
|
||||
txtarea_el.style.height = ed.getContentAreaContainer().offsetHeight + 20 + 'px';
|
||||
ed.hide();
|
||||
@@ -42,7 +42,7 @@ var switchEditors = {
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
|
||||
_wp_Nop : function(content) {
|
||||
var blocklist1, blocklist2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user