myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "WYSIWYG Editor" by WernerPunz
Date Tue, 07 Feb 2006 20:07:20 GMT
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.
+ 

Mime
View raw message