ページをロードするとすぐにエラーが発生するという問題が発生しました。this.getDoc() is null
の関数getBody()
がEditor.js
呼び出され、ドキュメントが利用できないようです
getBody : function() {
return this.bodyElement || this.getDoc().body;
},
この場合、getBody() は gecko コード ブロックの destroy() 関数によってトリガーされています。
destroy : function(s) {
var t = this;
// One time is enough
if (t.destroyed)
return;
// We must unbind on Gecko since it would otherwise produce the pesky "attempt to run compile-and-go script on a cleared scope" message
if (isGecko) {
Event.unbind(t.getDoc());
Event.unbind(t.getWin());
Event.unbind(t.getBody()); // here is the relevant getBody() call
}
tinymce.js の関数 addUnload によって Destroy がトリガーされました。
o.func.call(o.scope, 1);
この問題を回避するにはどうすればよいですか?