mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@19528 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3,14 +3,14 @@ var switchEditors = {
|
||||
|
||||
switchto: function(el) {
|
||||
var aid = el.id, l = aid.length, id = aid.substr(0, l - 5), mode = aid.substr(l - 4);
|
||||
|
||||
|
||||
this.go(id, mode);
|
||||
},
|
||||
|
||||
|
||||
go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'
|
||||
id = id || 'content';
|
||||
mode = mode || 'toggle';
|
||||
|
||||
|
||||
var t = this, ed = tinyMCE.get(id), wrap_id, txtarea_el, dom = tinymce.DOM;
|
||||
|
||||
wrap_id = 'wp-'+id+'-wrap';
|
||||
@@ -21,7 +21,7 @@ var switchEditors = {
|
||||
mode = 'html';
|
||||
else
|
||||
mode = 'tmce';
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'tmce' == mode || 'tinymce' == mode ) {
|
||||
if ( ed && ! ed.isHidden() )
|
||||
|
||||
Reference in New Issue
Block a user