Bug #18441 ยป rtehtmlarea_bugfix_7853.patch
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js (working copy) | ||
---|---|---|
options[0].text = this.localize("No block");
|
||
|
||
if (deepestBlockAncestor) {
|
||
if (!/^(body|div|address|blockquote)$/i.test(deepestBlockAncestor.nodeName) && deepestBlockAncestor.parentNode && !/^(li|td|th)$/i.test(deepestBlockAncestor.parentNode.nodeName)) {
|
||
options[0].style.display = "none";
|
||
}
|
||
var nodeName = deepestBlockAncestor.nodeName.toLowerCase();
|
||
for (i = options.length; --i >= 0;) {
|
||
if (nodeName === options[i].value.toLowerCase()) {
|