You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/02/07 21:07:20 UTC
[Myfaces Wiki] Update of "WYSIWYG Editor" by WernerPunz
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by WernerPunz:
http://wiki.apache.org/myfaces/WYSIWYG_Editor
------------------------------------------------------------------------------
</script>
}}}
+ == Integration of the Dojo Editor ==
+ Since MyFaces 1.1.2 there is a Dojo foundation within the MyFaces codebase. At the time of writing the foundation is very limited but already allows full access to the Dojo infrastructure.
+ You can use dojo to switch to the Dojo internal html editor.
+
+ The easiest way until there is an explicit html edit switch is to use the dojo styleclass infrastructure
+ to style a textArea control:
+
+ example:
+
+ {{{
+ <s:dojoInitializer require="dojo.widget.Editor"/>
+
+ <h:form>
+ <h:inputTextarea id="editarea2" styleClass="dojo-Editor" value="hello
+ world">
+
+ </h:inputTextarea>
+ <h:commandLink action="submitted" id="submitted" value="[Submit]"/>
+ </h:form>
+ }}}
+
+ The dojo initializer adds the needed imports to the code and also adds via the require
+ the Editor subcontrol.
+
+ within the form the textArea is altered to a html editor via the styleClass.
+