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

Built from https://develop.svn.wordpress.org/trunk@28576


git-svn-id: http://core.svn.wordpress.org/trunk@28401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-05-25 22:47:13 +00:00
parent 4238d2f53f
commit 1ba1b3ec29
3 changed files with 2 additions and 2 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;
}

File diff suppressed because one or more lines are too long