+2010-11-18 Stanislas Rolland <typo3@sjbr.ca>
+
+ * Fixed bug #16343: htmlArea RTE: JS-Error when closing "Insert Picture" dialogue
+
2010-11-18 Ernesto Baschny <ernesto@typo3.org>
* Release of TYPO3 4.5.0beta1
+2010-11-18 Stanislas Rolland <typo3@sjbr.ca>
+
+ * Fixed bug #16343: htmlArea RTE: JS-Error when closing "Insert Picture" dialogue
+
2010-11-17 Stanislas Rolland <typo3@sjbr.ca>
- * Fixed bug #16447: htmlArea RTE: Missing tooltip label for horizontal rule
+ * Fixed bug #16447: htmlArea RTE: Missing tooltip label for horizontal rule
2010-11-16 Stanislas Rolland <typo3@sjbr.ca>
this.mon(Ext.get(this.document.documentElement), (Ext.isIE || Ext.isWebKit) ? 'keydown' : 'keypress', this.onAnyKey, this);
this.mon(Ext.get(this.document.documentElement), 'mouseup', this.onMouse, this);
this.mon(Ext.get(this.document.documentElement), 'click', this.onMouse, this);
- this.mon(Ext.get(this.document.documentElement), Ext.isWebKit ? 'dragend' : 'drop', this.onDrop, this);
+ this.mon(Ext.get(this.document.documentElement), 'drop', this.onDrop, this);
+ if (Ext.isWebKit) {
+ this.mon(Ext.get(this.document.body), 'dragend', this.onDrop, this);
+ }
},
/*
* Handler for other key events
* @return string the body tag additions
*/
public function getBodyTagAdditions() {
- return '';
+ return 'onload="initEventListeners();"';
}
/**
$JScode='
var plugin = window.parent.RTEarea["' . $editorNo . '"].editor.getPlugin("TYPO3Image");
var HTMLArea = window.parent.HTMLArea;
- var Ext = window.parent.Ext;
- if (Ext.isWebKit) {
- plugin.dialog.mon(Ext.get(plugin.dialog.getComponent("content-iframe").getEl().dom.contentWindow.document.documentElement), "dragend", plugin.onDrop, plugin, {single: true});
+ function initEventListeners() {
+ if (Ext.isWebKit) {
+ Ext.EventManager.addListener(window.document.body, "dragend", plugin.onDrop, plugin, { single: true });
+ }
}
function jumpToUrl(URL,anchor) {
var add_act = URL.indexOf("act=")==-1 ? "&act='.$act.'" : "";