TinyMCE: don't remove empty <i>, <b>, <em> and <strong> matching the behavior in WordPress 3.4/TinyMCE 3.4.9, see #22477 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23222 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
410dda2a96
commit
c6d566d726
@ -704,7 +704,7 @@
|
|||||||
elements.img.attributesDefault = [{name: 'alt', value: ''}];
|
elements.img.attributesDefault = [{name: 'alt', value: ''}];
|
||||||
|
|
||||||
// Remove these if they are empty by default
|
// Remove these if they are empty by default
|
||||||
each(split('ol,ul,sub,sup,blockquote,span,font,a,table,tbody,tr,strong,em,b,i'), function(name) {
|
each(split('ol,ul,sub,sup,blockquote,span,font,a,table,tbody,tr'), function(name) {
|
||||||
if (elements[name]) {
|
if (elements[name]) {
|
||||||
elements[name].removeEmpty = true;
|
elements[name].removeEmpty = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user