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:
parent
4238d2f53f
commit
1ba1b3ec29
|
@ -342,7 +342,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
||||||
|
|
||||||
editor.on( 'SaveContent', function( e ) {
|
editor.on( 'SaveContent', function( e ) {
|
||||||
// If editor is hidden, we just want the textarea's value to be saved
|
// 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;
|
e.content = e.element.value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue