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

Built from https://develop.svn.wordpress.org/trunk@27083


git-svn-id: http://core.svn.wordpress.org/trunk@26956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-02-03 20:26:12 +00:00
parent e35d675558
commit 12b6085865
3 changed files with 6 additions and 1 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';

File diff suppressed because one or more lines are too long