ho avuto il problema che quando carico la mia pagina ho ricevono immediatamente l'errore: this.getDoc() is null
this.getDoc() è nullo in FF usando TinyMCE
La funzione getBody()
di Editor.js
viene chiamato e il documento sembra essere non disponibile
getBody : function() {
return this.bodyElement || this.getDoc().body;
},
in questo caso getBody() è stato innescato dalla funzione destroy() in un blocco di codice Gecko.
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
}
Destroy è stato innescato dalla funzione addUnload di tinymce.js
o.func.call(o.scope, 1);
Cosa posso fare per evitare questo problema?
+1 grazie per la risposta. non sto usando filemanager e/o imagemanager (non sono nella mia lista di plugin). riguardo a jQuery e tinymce. Potrei essere in grado di aggiornare alla versione latesttinymce, ma a causa di conflitti jQuery con il nostro CMS non sarò in grado di aggiornare jQuery – Thariama