Bug #19707 » rtehtmlarea_bugfix_9965_typo3_4-2.patch
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail) | ||
---|---|---|
if (this._doc.queryCommandEnabled("insertbronreturn")) this._doc.execCommand("insertbronreturn", false, this.config.disableEnterParagraphs);
|
||
if (this._doc.queryCommandEnabled("styleWithCSS")) this._doc.execCommand("styleWithCSS", false, this.config.useCSS);
|
||
}
|
||
if (HTMLArea.is_ie) doc.selection.empty();
|
||
this._editMode = "wysiwyg";
|
||
if (doc.body.contentEditable || doc.designMode == "on") HTMLArea._appendToLog("[HTMLArea::initIframe]: Design mode successfully set.");
|
||
} else {
|
||
... | ... | |
editor.onGenerate = null;
|
||
}
|
||
HTMLArea._appendToLog("[HTMLArea::initIframe]: All plugins successfully generated.");
|
||
editor.focusEditor();
|
||
// Focus on the first editor instance
|
||
for (var editorId in RTEarea) {
|
||
if (RTEarea.hasOwnProperty(editorId)) {
|
||
if (RTEarea[editorId].editor) {
|
||
if (editorNumber == editorId) {
|
||
editor.focusEditor();
|
||
}
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
editor.updateToolbar();
|
||
};
|
||
... | ... | |
try {
|
||
if (HTMLArea.is_safari) {
|
||
this._iframe.focus();
|
||
} else if (HTMLArea.is_opera) {
|
||
this._doc.focus();
|
||
} else {
|
||
this._iframe.contentWindow.focus();
|
||
}
|
- « Previous
- 1
- 2
- Next »