Change philip-20100818-XBk by phi...@philip-i7 on 2010-08-18 13:12:35 EDT
    in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Upgrades to RTE component for RTE beta

New Features:

Bugs Fixed: LPP-9307

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

Documentation:

Release Notes:

Overview:


Details:
I improved the rte component and added some additional functionality:

rte.lzx
  - Added documentation tags for public methods, events
  - Added attribute so custom wrapper file can be specified
- Added execCommand() to pass arguments to the dijit.Editor#execCommand. This allows lzx code to emulate a plugin. - In addButton(), modify the <input> attributes to set tooltips if possible.
  - Set editor theme if one is specified in onload()
  - Removed override of visible becaue I don't use it anymore.

html.lzx
- clear iframeid when the component is destroyed so rte's destroy method doesn't get into trouble.

rtewrapper.html
  - Added a div (called rte_all) around the editor div.
  - Moved the <script> tag into the <head> section.

rtemanager.js
  - Improved destroy() method
- Fixed setText() so all text is erased when an empty string is passed.
  - Added execCommand() to call plugin functionality
- Added rte_loaded method which is called by body#onload in rtewrapper.
    This is called after the rtemanager is loaded.

/test/components/extensions/test/rte_test.lzx
  - New test program to exercise the functionality of the editor.
    - Specify which plugins to load and which theme to use.
- Visual indication when oneditorready and ontext events are generated
    - get/set the editor text while the editor is running
    - insert text/image using a button attached to the editor

Tests:
examples/extensions/rte.lzx and test/components/extensions/test/rte_test.lzx run in all platforms.


Files:
A       test/components/extensions/test/rte_test.lzx
M       lps/components/extensions/html.lzx
M       lps/components/extensions/rte.lzx
M       lps/includes/rtewrapper.html
M       lps/includes/source/rtemanager.js
M       examples/extensions/rte.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/philip-20100818-XBk.tar

Reply via email to