[kupu-checkins] r45177 - kupu/trunk/kupu/common
duncan at codespeak.net
duncan at codespeak.net
Wed Jul 18 11:46:50 CEST 2007
Author: duncan
Date: Wed Jul 18 11:46:50 2007
New Revision: 45177
Modified:
kupu/trunk/kupu/common/kupueditor.js
Log:
Changed resumeEditing to restore the selection before making it editable again: setting the contentEditable attribute on the body *sometimes* makes IE's saved range invalid.
Modified: kupu/trunk/kupu/common/kupueditor.js
==============================================================================
--- kupu/trunk/kupu/common/kupueditor.js (original)
+++ kupu/trunk/kupu/common/kupueditor.js Wed Jul 18 11:46:50 2007
@@ -846,8 +846,8 @@
}
if (this.getBrowserName() == "IE") {
var body = this.getInnerDocument().getElementsByTagName('body')[0];
- body.setAttribute('contentEditable', 'true');
this._restoreSelection();
+ body.setAttribute('contentEditable', 'true');
} else {
var doc = this.getInnerDocument();
this.getDocument().execCommand('contentReadOnly', 'false');
More information about the kupu-checkins
mailing list