You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mk...@apache.org on 2006/02/24 04:04:17 UTC

svn commit: r380314 - /myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/textareatestjsfonly.jsp

Author: mkienenb
Date: Thu Feb 23 19:04:15 2006
New Revision: 380314

URL: http://svn.apache.org/viewcvs?rev=380314&view=rev
Log:
Added customized toolbar example as precursor to editor component.

Modified:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/textareatestjsfonly.jsp

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/textareatestjsfonly.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/textareatestjsfonly.jsp?rev=380314&r1=380313&r2=380314&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/textareatestjsfonly.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/textareatestjsfonly.jsp Thu Feb 23 19:04:15 2006
@@ -42,6 +42,18 @@
 						
 					</h:inputTextarea>
 					<h:commandLink action="submitted" id="submitted" value="[Submit]"/>
+					
+					<%/* Alternate way to do it */%>
+					<h:inputTextarea id="myInputTextarea" value="Customized Toolbars"/>
+					<f:verbatim>
+					<script type="text/javascript"><!--
+						var editorArgs = {
+			    			items: ["textGroup", "blockGroup", "justifyGroup", "colorGroup", "listGroup", "indentGroup", "linkGroup"]
+						};
+						var editor = dojo.widget.fromScript("Editor", editorArgs,
+			                                    dojo.byId("myForm:myInputTextarea"));
+//--></script>
+					</f:verbatim>
 				</h:form>
 			</h:panelGroup>