Changeset 650
- Timestamp:
- 03/30/10 22:57:06 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wymeditor/jquery.wymeditor.mozilla.js
r649 r650 28 28 29 29 WYMeditor.WymClassMozilla.prototype.initIframe = function(iframe) { 30 30 var wym = this; 31 31 32 this._iframe = iframe; 32 33 this._doc = iframe.contentDocument; … … 63 64 64 65 //bind editor focus events (used to reset designmode - Gecko bug) 65 jQuery(this._doc).bind("focus", this.enableDesignMode); 66 jQuery(this._doc).bind("focus", function () { 67 // Fix scope 68 wym.enableDesignMode.call(wym); 69 }); 66 70 67 71 //post-init functions … … 237 241 238 242 WYMeditor.WymClassMozilla.prototype.enableDesignMode = function() { 239 if(this. designMode == "off") {243 if(this._doc.designMode == "off") { 240 244 try { 241 this. designMode = "on";242 this. execCommand("styleWithCSS", '', false);245 this._doc.designMode = "on"; 246 this._doc.execCommand("styleWithCSS", '', false); 243 247 } catch(e) { } 244 248 }
Note: See TracChangeset
for help on using the changeset viewer.