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

git-svn-id: https://develop.svn.wordpress.org/trunk@27083 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-02-03 20:25:08 +00:00
parent 0d8921de03
commit c24e451ae3
1 changed files with 5 additions and 0 deletions

View File

@ -348,6 +348,11 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
}
});
editor.on( 'preInit', function() {
// Don't replace <i> with <em> and <b> with <strong> and don't remove them when empty
editor.schema.addValidElements( '@[id|accesskey|class|dir|lang|style|tabindex|title|contenteditable|draggable|dropzone|hidden|spellcheck|translate],i,b' );
});
// Add custom shortcuts
modKey = 'alt+shift';