Changeset 648
- Timestamp:
- 01/09/10 17:07:38 (2 years ago)
- Location:
- trunk/src/wymeditor
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wymeditor/jquery.wymeditor.explorer.js
r632 r648 119 119 break; 120 120 } 121 122 this.listen(); 121 123 122 }; 124 123 -
trunk/src/wymeditor/jquery.wymeditor.js
r647 r648 940 940 this.update(); 941 941 this.toggleHtml(); 942 943 //partially fixes #121 when the user manually inserts an image944 if(!jQuery(this._box).find(this._options.htmlSelector).is(':visible'))945 this.listen();946 942 break; 947 943 … … 1333 1329 1334 1330 WYMeditor.editor.prototype.listen = function() { 1335 1336 //don't use jQuery.find() on the iframe body 1337 //because of MSIE + jQuery + expando issue (#JQ1143) 1338 //jQuery(this._doc.body).find("*").bind("mouseup", this.mouseup); 1339 1340 jQuery(this._doc.body).bind("mousedown", this.mousedown); 1341 var images = this._doc.body.getElementsByTagName("img"); 1342 for(var i=0; i < images.length; i++) { 1343 jQuery(images[i]).bind("mousedown", this.mousedown); 1344 } 1331 //don't use jQuery.find() on the iframe body 1332 //because of MSIE + jQuery + expando issue (#JQ1143) 1333 //jQuery(this._doc.body).find("*").bind("mouseup", this.mouseup); 1334 1335 jQuery(this._doc.body).bind("mousedown", this.mousedown); 1345 1336 }; 1346 1337 1347 1338 WYMeditor.editor.prototype.mousedown = function(evt) { 1348 1349 var wym = WYMeditor.INSTANCES[this.ownerDocument.title]; 1350 wym._selected_image = (this.tagName.toLowerCase() == WYMeditor.IMG) ? this : null; 1351 evt.stopPropagation(); 1339 var wym = WYMeditor.INSTANCES[this.ownerDocument.title]; 1340 wym._selected_image = (evt.target.tagName.toLowerCase() == WYMeditor.IMG) ? evt.target : null; 1352 1341 }; 1353 1342 -
trunk/src/wymeditor/jquery.wymeditor.mozilla.js
r632 r648 137 137 if(container.tagName.toLowerCase() == WYMeditor.BODY) 138 138 this._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P); 139 140 //add event handlers on doc elements141 142 this.listen();143 139 }; 144 140 -
trunk/src/wymeditor/jquery.wymeditor.opera.js
r632 r648 69 69 if(param) this._doc.execCommand(cmd,false,param); 70 70 else this._doc.execCommand(cmd); 71 72 this.listen(); 71 73 72 }; 74 73 -
trunk/src/wymeditor/jquery.wymeditor.safari.js
r632 r648 119 119 this._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P); 120 120 121 //add event handlers on doc elements122 this.listen();123 121 }; 124 122
Note: See TracChangeset
for help on using the changeset viewer.