Bug #17986 ยป rtehtmlarea_bugfix_7138.patch
typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js (working copy) | ||
---|---|---|
var range = this._createRange(selection);
|
||
}
|
||
var parentElement = range.commonAncestorContainer;
|
||
while (parentElement.nodeType == 3) {
|
||
while (parentElement && parentElement.nodeType == 3) {
|
||
parentElement = parentElement.parentNode;
|
||
}
|
||
return parentElement;
|
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js (working copy) | ||
---|---|---|
* This function gets called when the toolbar is updated
|
||
*/
|
||
onUpdateToolbar : function () {
|
||
if (this.editor._editMode === "textmode") {
|
||
if (this.editor.getMode() === "textmode" || this.editor._doc.designMode !== "on") {
|
||
return false;
|
||
}
|
||
var parentElement = this.editor._statusBarTree.selected ? this.editor._statusBarTree.selected : this.editor.getParentElement();
|
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockStyle/block-style.js (working copy) | ||
---|---|---|
parent = parent.parentNode;
|
||
}
|
||
|
||
if (parent.className && /\S/.test(parent.className)) {
|
||
classNames = parent.className.trim().split(" ");
|
||
}
|
||
if (parent) {
|
||
tagName = parent.nodeName.toLowerCase();
|
||
if (parent.className && /\S/.test(parent.className)) {
|