Author: adubovsky
Date: 2008-11-26 09:11:57 -0500 (Wed, 26 Nov 2008)
New Revision: 11394
Added:
trunk/test-applications/facelets/src/main/resources/editorconfig.properties
Modified:
trunk/test-applications/facelets/src/main/java/editor/Editor.java
trunk/test-applications/facelets/src/main/webapp/Editor/Editor.xhtml
trunk/test-applications/facelets/src/main/webapp/Editor/EditorProperty.xhtml
Log:
+ editor config file
Modified: trunk/test-applications/facelets/src/main/java/editor/Editor.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/editor/Editor.java 2008-11-26 14:11:18
UTC (rev 11393)
+++ trunk/test-applications/facelets/src/main/java/editor/Editor.java 2008-11-26 14:11:57
UTC (rev 11394)
@@ -27,6 +27,7 @@
private String dialogType;
private String language;
// private String skin;
+ private String configuration;
public Editor() {
value = "Collaboration-oriented websites require a human-friendly markup language
for easy entry of formatted text in forum posts, wiki pages, blogs, comments, etc. Seam
provides the <s:formattedText/> control for display of formatted text that
conforms to the Seam Text language. Seam Text is implemented using an ANTLR-based parser.
You don't need to know anything about ANTLR to use it, however.";
@@ -44,6 +45,7 @@
dialogType = "window";
language = "en";
// skin = "default";
+ configuration = "";
}
/*
@@ -234,6 +236,14 @@
this.language = language;
}
+ public String getConfiguration() {
+ return (configuration == null)?"":configuration;
+ }
+
+ public void setConfiguration(String configuration) {
+ this.configuration = configuration;
+ }
+
// public String getSkin() {
// return skin;
// }
Added: trunk/test-applications/facelets/src/main/resources/editorconfig.properties
===================================================================
--- trunk/test-applications/facelets/src/main/resources/editorconfig.properties
(rev 0)
+++ trunk/test-applications/facelets/src/main/resources/editorconfig.properties 2008-11-26
14:11:57 UTC (rev 11394)
@@ -0,0 +1,3 @@
+theme_advanced_buttons1 = "forecolor,backcolor"
+theme_advanced_buttons2 =
"bullist,numlist,separator,outdent,indent,separator,undo,redo"
+theme_advanced_buttons3 =
"hr,removeformat,visualaid,separator,sub,sup,separator,charmap"
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/Editor/Editor.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Editor/Editor.xhtml 2008-11-26
14:11:18 UTC (rev 11393)
+++ trunk/test-applications/facelets/src/main/webapp/Editor/Editor.xhtml 2008-11-26
14:11:57 UTC (rev 11394)
@@ -19,8 +19,13 @@
valueChangeListener="#{editor.valueChangeListener}"
viewMode="#{editor.viewMode}" readonly="#{editor.readonly}"
tabindex="#{editor.tabindex}" dialogType="#{editor.dialogType}"
- language="#{editor.language}"
styleClass="EditorStyleClass"></rich:editor>
+ language="#{editor.language}" styleClass="EditorStyleClass"
+ configuration="#{editor.configuration}">
+ <f:param name="theme_advanced_resizing" value="true" />
+ <f:param name="theme_advanced_statusbar_location" value="top"
/>
+ </rich:editor>
+
<h:panelGrid columns="1">
<f:facet name="header">
<h:outputText value="Results" />
Modified: trunk/test-applications/facelets/src/main/webapp/Editor/EditorProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/Editor/EditorProperty.xhtml 2008-11-26
14:11:18 UTC (rev 11393)
+++
trunk/test-applications/facelets/src/main/webapp/Editor/EditorProperty.xhtml 2008-11-26
14:11:57 UTC (rev 11394)
@@ -66,7 +66,12 @@
<f:selectItem itemValue="de" itemLabel="de" />
<f:selectItem itemValue="ru" itemLabel="ru" />
</h:selectOneRadio>
-
+
+ <h:outputText value="use configuration file: "></h:outputText>
+ <h:selectOneRadio value="#{editor.configuration}"
onchange="submit();">
+ <f:selectItem itemValue="" itemLabel="do not use" />
+ <f:selectItem itemValue="editorconfig" itemLabel="use
editorconfig.properties" />
+ </h:selectOneRadio>
</h:panelGrid>
<h:commandButton value="add test"
action="#{editor.addHtmlEditor}"></h:commandButton>
</f:subview>
\ No newline at end of file
Show replies by date