Author: alevkovsky
Date: 2008-11-11 07:53:11 -0500 (Tue, 11 Nov 2008)
New Revision: 11075
Modified:
trunk/sandbox/ui/editor/src/main/config/component/editor.xml
trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java
trunk/sandbox/ui/editor/src/main/templates/editor.jspx
Log:
Add skin attribute
Modified: trunk/sandbox/ui/editor/src/main/config/component/editor.xml
===================================================================
--- trunk/sandbox/ui/editor/src/main/config/component/editor.xml 2008-11-11 12:52:29 UTC
(rev 11074)
+++ trunk/sandbox/ui/editor/src/main/config/component/editor.xml 2008-11-11 12:53:11 UTC
(rev 11075)
@@ -164,5 +164,13 @@
<classname>boolean</classname>
<description>valid</description>
</property>
+ <property>
+ <name>skin</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Attribute defines Editor skin
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
</component>
</components>
Modified: trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java 2008-11-11
12:52:29 UTC (rev 11074)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/UIEditor.java 2008-11-11
12:53:11 UTC (rev 11075)
@@ -104,7 +104,11 @@
public abstract void setConfiguration(String configuration);
public abstract String getConfiguration();
+
+ public abstract void setSkin(String skin);
+ public abstract String getSkin();
+
public boolean getRendersChildren() {
return true;
}
Modified: trunk/sandbox/ui/editor/src/main/templates/editor.jspx
===================================================================
--- trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-11-11 12:52:29 UTC (rev
11074)
+++ trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-11-11 12:53:11 UTC (rev
11075)
@@ -36,6 +36,7 @@
tinyMceParams.onchange_callback =
'#{component.attributes["onchange"]}';
tinyMceParams.save_callback =
'#{component.attributes["onsave"]}';
tinyMceParams.setup = '#{component.attributes["onsetup"]}';
+ tinyMceParams.skin = '#{component.attributes["skin"]}';
var richParams =
{extScriptSuffix:'#{this:getSriptMappingSuffix(context)}',
extCssSuffix:'#{this:getCssMappingSuffix(context)}'}
Show replies by date