Bug #19418 ยป rtehtmlarea_bugfix_9490.patch
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js (copie de travail) | ||
---|---|---|
if (endElement) {
|
||
var parent = endElement.parentNode;
|
||
var paragraph = this.editor._doc.createElement("p");
|
||
if (HTMLArea.is_ie || HTMLArea.is_opera) {
|
||
if (HTMLArea.is_ie) {
|
||
paragraph.innerHTML = " ";
|
||
} else {
|
||
paragraph.appendChild(this.editor._doc.createElement("br"));
|
||
... | ... | |
} else {
|
||
parent.insertBefore(paragraph, after ? endElement.nextSibling : endElement);
|
||
}
|
||
this.editor.selectNodeContents(paragraph, HTMLArea.is_opera ? null : true);
|
||
this.editor.selectNodeContents(paragraph, true);
|
||
}
|
||
},
|
||
|