<rte>
is a <html>
that allows editing of rich-text pages.
The rte component uses the dijit.Editor from the dojo toolkit.
For best results in Flash (like the html component), set the wmode attribute to 'transparent' when embedding the application.
See examples/extensions/html-swf.jsp for an example. See examples/extensions/rte.lzx for an example of embedding <rte>
in a window.
<canvas
height
="400
">
<include
href
="extensions/rte.lzx
"/>
<rte
width
="600
" height
="400
">Initial contents that you can edit.
</rte
>
</canvas
>
rte
extends <html>
.
Name (CSS property) | Type (tag) | Type (js) | Default | Category |
---|---|---|---|---|
dojo_css
|
string | String | dijit/themes/ | read/write |
Dojo stylesheet root (relative to dojo_root). This value is ignored if dojo_root is empty. Default value is 'dijit/themes/' | ||||
dojo_js
|
string | String | dojo/dojo.js | read/write |
Dojo library to load (relative to dojo_root). This value is ignored if dojo_root is empty. Default value is 'dojo/dojo.js'. If you want to load an uncompressed version of dojo, specify 'dojo/dojo.js.uncompressed.js' | ||||
dojo_locale
|
string | String | read/write | |
dojo locale to use. Default value is '' which will use the locale from the browser. | ||||
dojo_root
|
string | String | read/write | |
root url where Dojo library is loaded. An empty string (default) will load the library from Google. This path must end with a '/'. For example, if you have a local version located at /trunk, you would specify something like '/trunk/dojo-release-1.5.0/'. | ||||
dojo_theme
|
string | String | tundra | read/write |
dojo theme to use. Default value is 'tundra' Other values in dojo 1.5 are soria, nihilo, claro | ||||
editorready
|
expression | Boolean | false | readonly |
If true, the rte editor is ready to receive commands | ||||
extra_plugins
|
string | String | read/write | |
Comma-separated list of additional dijit.Editor plugins to load. An empty string (default) will load only the plugins used by default. | ||||
text
|
html | html | read/write | |
The initial value of the text to edit. The text is updated while the rte is running. | ||||
toolbar_order
|
string | String | undo,redo,|,cut,copy,paste,|,bold,italic,underline,strikethrough,|,insertOrderedList,insertUnorderedList,indent,outdent,|,justifyLeft,justifyRight,justifyCenter,justifyFull,|,foreColor,hiliteColor,|,createLink,unlink,insertImage,|,print,smiley,||,fontName,fontSize | read/write |
dijit.Editor toolbar order. The list of items to show in the editor toolbar. The default is to show all toolbar features. A '|' inserts a separator between blocks of toolbars. A '||' will force a linebreak in the toolbar. | ||||
wrapperfile
|
string | String | read/write | |
Location of the html wrapper file used by the editor. An empty string (default) loads the system wrapper file. If a custom wrapper file is used, the path is relative to where the application runs from. |
focusable, framename, history, html, iframeid, loading, minimumheight, minimumwidth, mouseevents, ready, rpcmethods, scrollbars, shownativecontextmenu, src, target, visible
aaactive, aadescription, aaname, aasilent, aatabindex, align, backgroundrepeat, bgcolor, cachebitmap, capabilities, clickable, clickregion, clip, colortransform, context, contextmenu, cornerradius, cursor, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hasdirectionallayout, hassetheight, hassetwidth, height, layout, loadratio, mask, opacity, pixellock, playing, proxyurl, resource, resourceheight, resourcewidth, rotation, shadowangle, shadowblurradius, shadowcolor, shadowdistance, showhandcursor, source, stretches, subviews, tintcolor, totalframes, unstretchedheight, unstretchedwidth, usegetbounds, valign, visibility, visible, width, x, xoffset, xscale, y, yoffset, yscale
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
Methods
addButton() |
---|
Parameter Name | Type | Description |
---|---|---|
attributes | Object | attributes suitable for the html <input> tag. If the src attribute is used to point to an image, the path is relative to where the application is loaded from. |
delegate | lz.handler | An LzDelegate which will be called with the user clicks on the text button. |
execCommand() |
---|
Parameter Name | Type | Description |
---|---|---|
cmd | String | Command to execute (Example: 'bold') |
arg | String | Argument required for certain commands. |
getText() |
---|
Parameter Name | Type | Description |
---|---|---|
delegate | lz.handler | An LzDelegate which will be called with the editor contents. |
insertHtml() |
---|
setText() |
---|
bringToFront, callJavascript, callRPC, restoreSelection, scrollBy, sendToBack, setStyle, storeSelection
bringToFront, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getCurrentTime, getDepthList, getDisplayObject, getID3, getMouse, getNextSelection, getPan, getPrevSelection, getProxyURL, getTotalTime, getVolume, init, isBehind, isInFrontOf, isMouseOver, measureHeight, measureWidth, play, proxyurl, searchSubviews, seek, sendAAEvent, sendBehind, sendInFrontOf, sendToBack, setAccessible, setAttributeRelative, setColor, setColorTransform, setPan, setProxyPolicy, setSource, setVolume, shouldYieldFocus, stop, unload, updateResourceSize
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
Events
Name | Description |
---|---|
oneditorready
|
The oneditor event is generated whenever the rte editor is completely loaded. |
ontext
|
The ontext event is generated whenever the rte text content changes. |
onaddsubview, onbackgroundrepeat, onblur, onclick, onclickable, onclip, oncontext, oncornerradius, ondblclick, onerror, onfocus, onframe, onframesloadratio, ongesture, onheight, onkeydown, onkeyup, onlastframe, onload, onloadratio, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmousetrackout, onmousetrackover, onmousetrackup, onmouseup, onmouseupoutside, onopacity, onplay, onplaying, onremovesubview, onshadowangle, onshadowblurradius, onshadowcolor, onshadowdistance, onstop, ontimeout, ontouch, onvisible, onwidth, onx, ony
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.