TinyMCE: fix saving the editor content on switching Visual -> Text, fixes #28353

git-svn-id: https://develop.svn.wordpress.org/trunk@28576 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-05-25 22:46:06 +00:00
parent aa6d49590b
commit 92f79f5bcd
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
editor.on( 'SaveContent', function( e ) {
// If editor is hidden, we just want the textarea's value to be saved
if ( editor.isHidden() ) {
if ( ! editor.inline && ! tinymce.DOM.isHidden( editor.id ) ) {
e.content = e.element.value;
return;
}