Change philip-20110809-KuL by philip@PHILIP-I7 on 2011-08-09 12:09:26 EDT
    in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: RTE: Send oneditorready at the correct time.

New Features:

Bugs Fixed: LPP-10046

Technical Reviewer: (pending)
QA Reviewer: hwei
Doc Reviewer: (pending)

Documentation:

Release Notes:

Overview:
rtemanager was waiting for dojo to signal the javascript is completely loaded. However, because some of the editor initialization happens in the iframe, you must also add an editor onLoadDeferred callback.

Details:
I add two new checks during initialization.

In editor_initialized() I added another dojo.addOnLoad() callback. This is needed if the rte_before_ready() callback requires new dojo components.

Once the editor is instantiated, a callback is added to the editor's onLoadDeferred. When this callback occurs, the final initialization takes place and the ready events (including oneditorready in the lzx code) is generated.


Tests:
See test in jira. You can now issue editor commands in the oneditorready() method.

Files:
M       lps/includes/source/rtemanager.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/philip-20110809-KuL.tar

Reply via email to