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:
parent
0d8921de03
commit
c24e451ae3
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue