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:
parent
aa6d49590b
commit
92f79f5bcd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue