Bug #18234 ยป rtehtmlarea_bugfix_7564.patch
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js (working copy) | ||
---|---|---|
var selection = editor._getSelection();
|
||
var range = editor._createRange(selection);
|
||
var parentElement = this.editor._statusBarTree.selected ? this.editor._statusBarTree.selected : this.editor.getParentElement(selection, range);
|
||
if (typeof(target) !== "undefined") {
|
||
if (target) {
|
||
parentElement = target;
|
||
}
|
||
while (parentElement && (!HTMLArea.isBlockElement(parentElement) || /^li$/i.test(parentElement.nodeName))) {
|