Project

General

Profile

Bug #23650 » rtehtmlarea_bugfix_15863_typo3_4-4.patch

Administrator Admin, 2010-11-25 23:35

View differences:

htmlarea.js (copie de travail)
'frameworkready'
);
this.addListener({
afterrender: {
fn: this.initEventListeners,
beforedestroy: {
fn: this.onBeforeDestroy,
single: true
}
});
// Monitor iframe becoming ready
this.mon(this.iframe, 'iframeready', this.onIframeReady, this, {single: true});
// Let the framefork render itself, but it will fail to do so if inside a hidden tab or inline element
if (!this.isNested || HTMLArea.util.TYPO3.allElementsAreDisplayed(this.nestedParentElements.sorted)) {
this.render(this.textArea.parent(), this.textArea.id);
......
* Initiate events monitoring
*/
initEventListeners: function () {
// Monitor iframe becoming ready
this.mon(this.iframe, 'iframeready', this.onIframeReady, this, {single: true});
// Make the framework resizable, if configured by the user
this.makeResizable();
// Monitor textArea container becoming shown or hidden as it may change the height of the status bar
......
this.addListener({
resize: {
fn: this.onFrameworkResize
},
beforedestroy: {
fn: this.onBeforeDestroy,
single: true
}
});
},
......
* Fire the editor when all components of the framework are rendered and ready
*/
onIframeReady: function () {
this.ready = this.toolbar.rendered && this.statusBar.rendered && this.textAreaContainer.rendered;
this.ready = this.rendered && this.toolbar.rendered && this.statusBar.rendered && this.textAreaContainer.rendered;
if (this.ready) {
this.initEventListeners();
this.textAreaContainer.show();
if (!this.getEditor().config.showStatusBar) {
this.statusBar.hide();
......
this.toolbar.destroy();
this.statusBar.destroy();
this.removeAll(true);
if (this.resizable) {
if (this.resizer) {
this.resizer.destroy();
}
return true;
(2-2/2)