3
3
file to ensure this script is always loaded first. Can also make sure placed first in
4
4
scripts list.-->
5
5
6
+ <#assign defaultHeight="200" / >
7
+ <#assign defaultWidth="75%" / >
8
+ <#assign defaultButton="bold,italic,underline,separator,link,bullist,numlist,separator,sub,sup,charmap,separator,undo,redo,separator,code"/ >
9
+ <#assign defaultToolbarLocation = "top" / >
10
+ <#if !height?has_content >
11
+ <#assign height=defaultHeight/ >
12
+ </#if >
13
+
14
+ <#if !width?has_content >
15
+ <#assign width=defaultWidth / >
16
+ </#if >
17
+
18
+ <#if !buttons?has_content >
19
+ <#assign buttons = defaultButton / >
20
+ </#if >
21
+
22
+ <#if !toolbarLocation?has_content >
23
+ <#assign toolbarLocation = defaultToolbarLocation / >
24
+ </#if >
25
+
6
26
<script type =" text/javascript" >
7
27
var customFormData = {
8
28
menuAction: " ${menuAction}" ,
@@ -14,6 +34,38 @@ scripts list.-->
14
34
" sparqlQuery" : " java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter" ,
15
35
" fixedHtml" : " java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.FixedHTMLDataGetter" ,
16
36
" searchIndividuals" : " java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SearchIndividualsDataGetter"
17
- }
37
+ },
38
+ tinyMCEData : {
39
+ theme : " advanced" ,
40
+ mode : " textareas" ,
41
+ theme_advanced_buttons1 : " ${buttons}" ,
42
+ theme_advanced_buttons2 : " " ,
43
+ theme_advanced_buttons3 : " " ,
44
+ theme_advanced_toolbar_location : " ${toolbarLocation}" ,
45
+ theme_advanced_toolbar_align : " left" ,
46
+ theme_advanced_statusbar_location : " bottom" ,
47
+ theme_advanced_path : false ,
48
+ theme_advanced_resizing : true ,
49
+ height : " ${height}" ,
50
+ width : " ${width}" ,
51
+ valid_elements : " tr[*],td[*],tbody[*],table[*],a[href|name|title|style],br,p[style],i,em,cite,strong/b,u,sub,sup,ul,ol,li,h1[dir|style|id],h2[dir|style|id],h3[dir|style|id],h4,h5,h6,div[style|class],span[dir|style|class]" ,
52
+ fix_list_elements : true ,
53
+ fix_nesting : true ,
54
+ cleanup_on_startup : true ,
55
+ gecko_spellcheck : true ,
56
+ forced_root_block: false ,
57
+ plugins : " paste" ,
58
+ paste_use_dialog : false ,
59
+ paste_auto_cleanup_on_paste : true ,
60
+ paste_convert_headers_to_strong : true ,
61
+ paste_strip_class_attributes : " mso" ,
62
+ paste_remove_spans : true ,
63
+ paste_remove_styles : true ,
64
+ paste_retain_style_properties : " "
65
+ }
18
66
};
19
67
</script >
68
+
69
+ ${scripts.add('<script type="text/javascript" src="${urls.base } /js/tiny_mce/tiny_mce.js"></script >',
70
+ '<script type =" text/javascript" src =" ${urls.base}/js/tiny_mce/jquery.tinymce.js" ></script >',
71
+ '<script type =" text/javascript" src =" ${urls.base}/js/edit/initTinyMce.js" ></script >')}
0 commit comments