WordPress.org

Make WordPress Core

Changeset 28576


Ignore:
Timestamp:
05/25/2014 10:46:06 PM (7 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

    r28189 r28576  
    343343    editor.on( 'SaveContent', function( e ) {
    344344        // If editor is hidden, we just want the textarea's value to be saved
    345         if ( editor.isHidden() ) {
     345        if ( ! editor.inline && ! tinymce.DOM.isHidden( editor.id ) ) {
    346346            e.content = e.element.value;
    347347            return;
Note: See TracChangeset for help on using the changeset viewer.