Author: jjamrich
Date: 2011-09-08 17:55:07 -0400 (Thu, 08 Sep 2011)
New Revision: 22694
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml
Log:
RFPL-1637: add new rich:editor attributes to Metamer
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml 2011-09-08
13:58:56 UTC (rev 22693)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml 2011-09-08
21:55:07 UTC (rev 22694)
@@ -2,7 +2,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
-
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
+
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<!--
JBoss, Home of Professional Open Source
@@ -38,12 +38,14 @@
<ui:define name="component">
- <rich:messages globalOnly="true" />
+ <rich:messages globalOnly="true" />
<rich:messages for="editor" />
<rich:editor id="editor"
height="#{richEditorBean.attributes['height'].value}"
immediate="#{richEditorBean.attributes['immediate'].value}"
+ lang="#{richEditorBean.attributes['lang'].value}"
onblur="#{richEditorBean.attributes['onblur'].value}"
+ ondirty="document.title = parseInt(document.title) +
1"
onchange="#{richEditorBean.attributes['onchange'].value}"
onfocus="#{richEditorBean.attributes['onfocus'].value}"
oninit="#{richEditorBean.attributes['oninit'].value}"
@@ -51,6 +53,7 @@
rendered="#{richEditorBean.attributes['rendered'].value}"
required="#{richEditorBean.attributes['required'].value}"
requiredMessage="#{richEditorBean.attributes['requiredMessage'].value}"
+
skin="#{richEditorBean.attributes['skin'].value}"
style="#{richEditorBean.attributes['style'].value}"
styleClass="#{richEditorBean.attributes['styleClass'].value}"
title="#{richEditorBean.attributes['title'].value}"
@@ -58,7 +61,27 @@
validator="#{richEditorBean.validateEditorValue}"
value="#{richEditorBean.attributes['value'].value}"
valueChangeListener="#{richBean.valueChangeListenerImproved}"
- width="#{richEditorBean.attributes['width'].value}"
/>
+ width="#{richEditorBean.attributes['width'].value}"
>
+ <c:if
test="#{richEditorBean.attributes['toolbar'].value=='custom'}"
>
+ <f:facet name="config" >
+ toolbar: "MyToolbar",
+ toolbar_MyToolbar:
+ [
+ { name: 'document', items : [
'NewPage','Preview' ] },
+ { name: 'clipboard', items : [
'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo'
] },
+ { name: 'editing', items : [
'Find','Replace','-','SelectAll','-','Scayt'
] },
+ { name: 'insert', items : [
'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'
+ ,'Iframe' ] },
+ '/',
+ { name: 'styles', items : [
'Styles','Format' ] },
+ { name: 'basicstyles', items : [
'Bold','Italic','Strike','-','RemoveFormat' ] },
+ { name: 'paragraph', items : [
'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote'
] },
+ { name: 'links', items : [
'Link','Unlink','Anchor' ] },
+ { name: 'tools', items : [
'Maximize','-','About' ] }
+ ]
+ </f:facet>
+ </c:if>
+ </rich:editor>
<br/>
<h:commandButton id="hButton" value="[h] Submit"
/>