Writer : ias
2007-11-09 17:00:00
Mac OS X 10.5
FF 2.0.0.9
에서
uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMNSHTMLDocument.designMode]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://ias.lab01.openmaru.com:10015/javascripts/xquared.js?1193885472 :: anonymous :: line 709" data: no]
가 납니다.
setEditMode: function(mode) {
if(this.currentEditMode == mode) return;
var firstCall = mode != false && mode != 'readonly' && !this.outmostWrapper;
if(firstCall) {
// Create editor element if needed
this._createEditorFrame();
this._registerEventHandlers();
this.loadCurrentContentFromStaticContent();
if(!xq.Browser.isTrident) {
window.setTimeout(function() {
// Without it, Firefox doesn't display embedded SWF
this.getDoc().designMode = 'On';
// turn off Firefox's table editing feature
try {this.getDoc().execCommand("enableInlineTableEditing", false, "false")} catch(ignored) {}
}.bind(this), 0);
}
}
부분에서
this.getDoc().designMode = 'On';
입니다.
Mail notification
- Views 646
- Vote-For 0
- Vote-Against 0


상세히 알려주셔서 감사합니다 ^^
해당 버그는 xq.Editor.setEditMode를 처음 호출할 때 'wysiwyg'이 아니라 'source'를 넘겨주면 발생하던 문제였습니다.
수정하였습니다.