Author: alevkovsky
Date: 2008-11-01 05:13:40 -0400 (Sat, 01 Nov 2008)
New Revision: 10998
Added:
trunk/sandbox/samples/editor-sample/src/main/resources/
trunk/sandbox/samples/editor-sample/src/main/resources/editorParameters.properties
Modified:
trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp
Log:
Add editor configuration parameters to samples
Added: trunk/sandbox/samples/editor-sample/src/main/resources/editorParameters.properties
===================================================================
--- trunk/sandbox/samples/editor-sample/src/main/resources/editorParameters.properties
(rev 0)
+++
trunk/sandbox/samples/editor-sample/src/main/resources/editorParameters.properties 2008-11-01
09:13:40 UTC (rev 10998)
@@ -0,0 +1,8 @@
+theme_advanced_buttons1="save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect"
+theme_advanced_buttons2="cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor"
+theme_advanced_buttons3="tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen"
+theme_advanced_buttons4="insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak"
+theme_advanced_toolbar_location="top"
+theme_advanced_toolbar_align="left"
+theme_advanced_statusbar_location="bottom"
+theme_advanced_resizing=true
\ No newline at end of file
Property changes on:
trunk/sandbox/samples/editor-sample/src/main/resources/editorParameters.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified: trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp
===================================================================
--- trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp 2008-11-01
09:13:35 UTC (rev 10997)
+++ trunk/sandbox/samples/editor-sample/src/main/webapp/pages/editor.jsp 2008-11-01
09:13:40 UTC (rev 10998)
@@ -5,6 +5,12 @@
<html>
<head>
<title></title>
+ <style>
+ .myStyle{
+ border:1px solid;
+
+ }
+ </style>
</head>
<body>
<f:view >
@@ -12,11 +18,15 @@
<ed:editor id="editorId"
value="#{editorBean.value}"
- width="300"
- height="175"
+ width="600"
+ height="400"
rendered="#{editorBean.rendered}"
binding="#{editorBean.editor}"
- theme="advanced" />
+ theme="advanced"
+ language="ru"
+
plugins="safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template"
+ configuration="editorParameters"
+ />
<h:outputText value="Editor value: #{editorBean.value}" />
<br/>