Make switchEditors.go() fully back-compat, see #17144
git-svn-id: http://svn.automattic.com/wordpress/trunk@19316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -365,9 +365,9 @@ PubSub.prototype.publish = function( topic, args ) {
|
||||
var htmled_is_hidden = $('#' + s.editor_id).is(':hidden');
|
||||
// Make sure the correct editor is displaying.
|
||||
if ( s.has_tinymce && s.mode === 'tinymce' && !htmled_is_hidden ) {
|
||||
switchEditors.go( $('#'+s.editor_id+'-tmce').get(0) );
|
||||
switchEditors.go(s.editor_id, 'tmce');
|
||||
} else if ( s.mode === 'html' && htmled_is_hidden ) {
|
||||
switchEditors.go( $('#'+s.editor_id+'-html').get(0) );
|
||||
switchEditors.go(s.editor_id, 'html');
|
||||
}
|
||||
|
||||
// Save content must be after switchEditors or content will be overwritten. See #17229.
|
||||
|
||||
Reference in New Issue
Block a user