Project

General

Profile

Bug #18441 ยป rtehtmlarea_bugfix_7853.patch

Administrator Admin, 2008-03-14 03:59

View differences:

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()) {
    (1-1/1)