updates to include tinymce in the default data property editing form

This commit is contained in:
hjkhjk54 2011-11-02 18:00:04 +00:00
parent 15c78c74d4
commit b2f1680402
4 changed files with 54 additions and 5 deletions

View file

@ -11,9 +11,9 @@
</#if>
<input rows="2" type="textarea"
<textarea rows="2"
id="${editConfiguration.dataLiteral}" name="${editConfiguration.dataLiteral}"
value="${literalValues}"/>
value="${literalValues}" class="useTinyMce">${literalValues}</textarea>
<div style="margin-top: 0.2em">

View file

@ -25,13 +25,14 @@
<#-- Set up data -->
<script type="text/javascript">
var tinyMCEData = {
var customFormData = {
tinyMCEData : {
theme : "advanced",
mode : "textareas",
theme_advanced_buttons1 : "${buttons}",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "{toolbarLocation}",
theme_advanced_toolbar_location : "${toolbarLocation}",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_path : false,
@ -59,7 +60,8 @@
// theme_advanced_buttons3_add_before : "tablecontrols,separator",
// invalid_elements : "li",
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
};
}
};
</script>
<#-- Script to enable browsing individuals within a class -->