Author: andre
Date: 2010-06-11 17:46:44 +0200 (Fri, 11 Jun 2010)
New Revision: 42536
Modified:
openimages/trunk/src/main/config/components/oip.xml
Log:
added html editor to some blocks
Modified: openimages/trunk/src/main/config/components/oip.xml
===================================================================
--- openimages/trunk/src/main/config/components/oip.xml 2010-06-11 15:42:34 UTC
(rev 42535)
+++ openimages/trunk/src/main/config/components/oip.xml 2010-06-11 15:46:44 UTC
(rev 42536)
@@ -113,6 +113,33 @@
<description xml:lang="en">Edit your user information</description>
<description xml:lang="nl">Bewerk je gebruikersinformatie</description>
<xi:include href="http://www.mmbase.org/components/validation.head.xml" />
+ <head>
+ <class name="org.mmbase.framework.StringRenderer">
+ <param name="string"><![CDATA[
+ <script src="{REQUEST.getContextPath}/mmbase/tiny_mce/tiny_mce.js"
type="text/javascript"> </script>
+ <script type="text/javascript">
+ tinyMCE.init({
+ theme: "advanced",
+ mode : "specific_textareas",
+ editor_selector : /(mm_f_intro|mm_f_body|mm_f_description)/,
+ plugins : "fullscreen,xhtmlxtras",
+ content_css : "{REQUEST.getContextPath}/style/css/tiny_mce.css",
+ // language :
"${requestScope['javax.servlet.jsp.jstl.fmt.locale.request']}",
+
+ theme_advanced_toolbar_align : "left",
+ theme_advanced_blockformats : "p,div,h3,h4,h5,h6,blockquote",
+ theme_advanced_path_location : "bottom",
+ theme_advanced_toolbar_location : "top",
+
+ theme_advanced_buttons1 :
"formatselect,bold,italic,|,bullist,numlist,|,link,unlink,|,fullscreen",
+ theme_advanced_buttons2 : "",
+ theme_advanced_buttons3 : "",
+ theme_advanced_resizing : true
+ });
+ </script>
+ ]]></param>
+ </class>
+ </head>
<body jsp="user-edit.jspx">
<param name="n" type="org.mmbase.bridge.Node" />
</body>
@@ -166,6 +193,33 @@
<description xml:lang="en">Edit one of the media
contributions</description>
<description xml:lang="nl">Edit een van de media bijdragen</description>
<xi:include href="http://www.mmbase.org/components/validation.head.xml" />
+ <head>
+ <class name="org.mmbase.framework.StringRenderer">
+ <param name="string"><![CDATA[
+ <script src="{REQUEST.getContextPath}/mmbase/tiny_mce/tiny_mce.js"
type="text/javascript"> </script>
+ <script type="text/javascript">
+ tinyMCE.init({
+ theme: "advanced",
+ mode : "specific_textareas",
+ editor_selector : /(mm_f_intro|mm_f_body|mm_f_description)/,
+ plugins : "fullscreen,xhtmlxtras",
+ content_css : "{REQUEST.getContextPath}/style/css/tiny_mce.css",
+ // language :
"${requestScope['javax.servlet.jsp.jstl.fmt.locale.request']}",
+
+ theme_advanced_toolbar_align : "left",
+ theme_advanced_blockformats : "p,div,h3,h4,h5,h6,blockquote",
+ theme_advanced_path_location : "bottom",
+ theme_advanced_toolbar_location : "top",
+
+ theme_advanced_buttons1 :
"formatselect,bold,italic,|,bullist,numlist,|,link,unlink,|,fullscreen",
+ theme_advanced_buttons2 : "",
+ theme_advanced_buttons3 : "",
+ theme_advanced_resizing : true
+ });
+ </script>
+ ]]></param>
+ </class>
+ </head>
<body jsp="user-media.jspx">
<param name="n" type="org.mmbase.bridge.Node" />
<param name="media" type="String" />
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs