Move to sane directory structure. Don't make 'cms' the top level of the silverstripe...
[silverstripe-elijah.git] / silverstripe-gsoc / cms / javascript / tinymce.template.js
blobe726e967be57c830e4b7abd01979eae200da6f41
1 function nullConverter(url) {
2         return url;
5 /**
6  * TinyMCE initialisation template.
7  * $ variables are replaced by string search & replace.  It's pretty crude.
8  */
9 tinyMCE.init({
10         mode : "specific_textareas",
11         textarea_trigger : "tinymce",
12         width: -1,
13         height: -1,
14         auto_resize : true,
15         theme : "advanced",
16         content_css : "$ContentCSS",
17         document_base_url: "$BaseURL",
18         urlconverter_callback : "nullConverter",
19         
20         setupcontent_callback : "sapphiremce_setupcontent",
21         cleanup_callback : "sapphiremce_cleanup",
22         
23         Theme_Advanced_Layout_manager : "SimpleLayout",
24         theme_advanced_toolbar_location : "manually_placed",
25         theme_advanced_toolbar_align : "left",
26         theme_advanced_toolbar_parent : "right",
27         plugins : "contextmenu,table,emotions,flash",   
28         table_inline_editing : true,
29         theme_advanced_buttons1 : "italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
30         theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,separator,search,replace,separator,flash",
31         theme_advanced_buttons3 : "",
32         theme_advanced_buttons3_add : "emotions",
34         theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
35         theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,separator,search,replace,separator,link,unlink,anchor,image,separator,cleanup,removeformat,visualaid,code,separator,tablecontrols",
36 */      
37         safari_warning : false,
38         relative_urls : true,
39         verify_html : true,
40         valid_elements : "+a[id|rel|rev|dir|tabindex|accesskey|type|name|href|target|title|class],-strong/-b[class],-em/-i[class],-strike[class],-u[class],#p[id|dir|class|align],-ol[class],-ul[class],-li[class],br,img[id|dir|longdesc|usemap|class|src|border|alt=|title|width|height|align],-sub[class],-sup[class],-blockquote[dir|class],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|dir|id|style],-tr[id|dir|class|rowspan|width|height|align|valign|bgcolor|background|bordercolor|style],tbody[id|class|style],thead[id|class|style],tfoot[id|class|style],-td[id|dir|class|colspan|rowspan|width|height|align|valign|scope|style],-th[id|dir|class|colspan|rowspan|width|height|align|valign|scope|style],caption[id|dir|class],-div[id|dir|class|align],-span[class|align],-pre[class|align],address[class|align],-h1[id|dir|class|align],-h2[id|dir|class|align],-h3[id|dir|class|align],-h4[id|dir|class|align],-h5[id|dir|class|align],-h6[id|dir|class|align],hr[class],dd[id|class|title|dir],dl[id|class|title|dir],dt[id|class|title|dir]",
41         extended_valid_elements : "img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]"
42 });