Change philip-20110804-Pva by philip@PHILIP-I7 on 2011-08-04 13:48:29
EDT
in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Allow rte to use a subclass of dijit.Editor
New Features:
Bugs Fixed: LPP-10008 (partial)
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Overview:
This changeset allows a subclass of dijit.Editor to be used
Details:
html.lzx
- Added forceSWFFocus() method that will move focus to the flash
application.
rte.lzx
- Added on_movefocus() event so rte wrapper code can move the focus
to another lzx component.
rtewrapper.html
- Added documentation for the rte_before_ready() method. When defined
you can modify the rtemanager class before the rte editor is
instantiated. See the jira report for sample code.
iframemanager.js
- forceSWFFocus() added to move focus to associated swf object.
- Modified __iframetrap_pre() and __iframetrap_post() to use
forceSWFFocus().
rtemanager.js
- baseURL, modulePaths added to djConfig so custom components can be
added to the local directory.
- __editor_class holds the name of the custom class to create. The
default value is dijit.Editor.
- Initialization will call lz.rtewrapper.rte_before_ready() if it
exists. A user can create a custom dijit.Editor. When finished, the user
must call lz.rte.manager.editor_initialized().
Tests:
See custom_rte.zip in the jira report. This example creates a
CustomEditor subclass that will catch and discard shift-tab. I tried to
have it move to the previous lzx element but there were problems in
Safari.
Files:
M lps/components/extensions/html.lzx
M lps/components/extensions/rte.lzx
M lps/includes/rtewrapper.html
M lps/includes/source/rtemanager.js
M lps/includes/source/iframemanager.js
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/philip-20110804-Pva.tar