* Follow-up to #10195: htmlArea RTE: Update RTE about info
* Added feature #10219: htmlArea RTE: Clean up unused localization files
- * Fixed bug #9785: Disabling images in RTE still leaves the toolbar button
+ * Fixed bug #9785: htmlArea RTE: Disabling images in RTE still leaves the toolbar button
+ * Fixed bug #9965: htmlArea RTE: IE jumps down to last RTE input
2009-01-20 Stanislas Rolland <typo3@sjbr.ca>
* Follow-up to #10195: htmlArea RTE: Update RTE about info
* Added feature #10219: htmlArea RTE: Clean up unused localization files
- * Fixed bug #9785: Disabling images in RTE still leaves the toolbar button
+ * Fixed bug #9785: htmlArea RTE: Disabling images in RTE still leaves the toolbar button
+ * Fixed bug #9965: htmlArea RTE: IE jumps down to last RTE input
2009-01-20 Stanislas Rolland <typo3@sjbr.ca>
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.");
- // size the iframe
+ // Size the iframe
editor.sizeIframe(2);
- 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();
}