#79605buttons.indent.useBlockquote breaks outdent in lists
Description
When the RTE configuration “buttons.indent.useBlockquote” is set to true, it is impossible to “outdent” list (ul/ol) elements.
Indent is still working as expected (sub-list added), but the “outdent” button is disabled. “shift+tab” shortcut is not working either.
This may be caused by code in “rtehtmlarea/Resources/Public/JavaScript/Plugins/BlockElements.js”, which seems to ignore ol/ul when “useBlockquote” is active.
case "Outdent" :
if (this.useBlockquote) {
for (var j = blockAncestors.length; --j >= 0;) {
if (/^blockquote$/i.test(blockAncestors[j].nodeName)) {
commandState = true;
break;
}
}
} else if (/^(ol|ul)$/i.test(parentElement.nodeName)) {
commandState = true;
} else {
for (var j = blockAncestors.length; --j >= 0;) {
if (Dom.hasClass(blockAncestors[j], this.useClass.Indent) || /^(td|th)$/i.test(blockAncestors[j].nodeName)) {
commandState = true;
break;
}
}
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.