Make WordPress Core

Changeset 27083


Ignore:
Timestamp:
02/03/2014 08:25:08 PM (11 years ago)
Author:
azaozz
Message:

TinyMCE: don't replace <i> with <em> and <b> with <strong> and don't remove them when empty, see #24067, see #23037.

File:
1 edited

Legend:

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

    r27052 r27083  
    347347            e.content = switchEditors.pre_wpautop( e.content );
    348348        }
     349    });
     350
     351    editor.on( 'preInit', function() {
     352        // Don't replace <i> with <em> and <b> with <strong> and don't remove them when empty
     353        editor.schema.addValidElements( '@[id|accesskey|class|dir|lang|style|tabindex|title|contenteditable|draggable|dropzone|hidden|spellcheck|translate],i,b' );
    349354    });
    350355
Note: See TracChangeset for help on using the changeset viewer.