Change philip-20110808-tWO by philip@PHILIP-I7 on 2011-08-08 14:16:32 EDT
    in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Improve custom loading of rte components

New Features:

Bugs Fixed: LPP-10008 (partial)

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

Documentation:

Release Notes:

Overview:
I found an issue when trying to load a custom dijit.Editor object. Applications that use the default dojo components from Google stopped working. I fixed this issue by requiring anyone that creates a custom dojo component to define a a varaible called modulePaths before loading rtemanager. The format of modulePaths matches the definition here: http://docs.dojocampus.org/dojo/config


A second change I made makes it easy to specify a specific version of dojo to load from CDN. For example, to load a v1.6.0 editor you can say,

<rte width="600" height="500" dojo_js="${null}" dojo_css="${null}" dojo_root="http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/"; />

The null values for dojo_js and dojo_css are important because it means to use t
he default values.


Details:

You cannot use a relative path for modulePaths because dojo will assume it is relative to where dojo is loaded.


Tests:
See new testcase uploaded in jira (custom_rte2). Also, any older test application using rte should continue to work.

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

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/philip-20110808-tWO.tar

Reply via email to