Actions
Bug #79605
closedbuttons.indent.useBlockquote breaks outdent in lists
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2017-02-02
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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; } } }
Updated by Mathias Schreiber almost 7 years ago
- Status changed from New to Closed
HTMLArea is no longer supported by TYPO3.
You can open up new issues here https://github.com/FriendsOfTYPO3/rtehtmlarea.
Cheers
Mathias
Actions