Hi Neil

On 7.6.2006 22:08 Uhr, Neil wrote:

Andreas Wuest wrote:

    editorElem.setAttribute("onload", "event.stopPropagation()");

    editorWindow = document.getElementById("uiEditorWindow");
    editorWindow.appendChild(editorElem);

    // set up
    editorElem.makeEditable("text", false);

I suggest using at least one of the two opportunities that you have to wait for it to load.

One of the two? To be honest, I know about zero... :( Is there indeed a way (or even two, as you say) to synchronise with the initialisation?

You might find that it gives the editor time to initialise.

You mean waiting before I call makeEditable(), or waiting before I try to insertText()? The latter can easily be achieved by the user not hitting the "Add text" button, but the former, I don't know...

BTW, it looks like it fails at http://lxr.mozilla.org/mozilla1.8.0/source/editor/libeditor/text/nsPlaintextEditor.cpp#738, where mRules tests to null.

--
Kind regards,
Andi
_______________________________________________
dev-tech-editor mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-editor

Reply via email to