Rev 13721 | Rev 13724 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13721 | Rev 13722 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | !if $wims_read_parm!= |
4 | !if $wims_read_parm!= |
- | 5 | ||
- | 6 | !if createxo notin $module |
|
- | 7 | !set iEdit_plugins=code help hr link lists |
|
- | 8 | !set iEdit_toolbar=undo redo | formatselect aligncenter | bold italic strikethrough | subscript superscript | hr link | bullist numlist | removeformat | code | help |
|
- | 9 | !reset iEdit_formats |
|
- | 10 | !else |
|
- | 11 | !set iEdit_plugins=code help hr lists |
|
- | 12 | !set iEdit_toolbar=undo redo | styleselect aligncenter | bold italic strikethrough | subscript superscript | hr link | bullist numlist | removeformat | code | help |
|
- | 13 | !set iEdit_formats=formats: {\ |
|
- | 14 | oef_indgood: { inline: 'span', classes: 'oef_indgood', exact: true },\ |
|
- | 15 | oef_indbad: { inline: 'span', classes: 'oef_indbad', exact: true },\ |
|
- | 16 | oef_indpartial: { inline: 'span', classes: 'oef_indpartial' },\ |
|
- | 17 | oef_indforget: { inline: 'span', classes: 'oef_indforget' },\ |
|
- | 18 | aligncenter: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'wimscenter' },\ |
|
- | 19 | wims_credits: { block: 'div', classes: 'wims_credits'},\ |
|
- | 20 | wims_instruction: { block: 'div', classes: 'wims_instruction'},\ |
|
- | 21 | wims_msg_success: { block: 'div', classes: 'wims_msg success'},\ |
|
- | 22 | wims_msg_alert: { block: 'div', classes: 'wims_msg alert'},\ |
|
- | 23 | wims_msg_warning: { block: 'div', classes: 'wims_msg warning'},\ |
|
- | 24 | wims_msg_info: { block: 'div', classes: 'wims_msg info'},\ |
|
- | 25 | wims_msg_help: { block: 'div', classes: 'wims_msg help'},\ |
|
- | 26 | },style_formats: [\ |
|
- | 27 | { title: 'Paragraph', format: 'p'},\ |
|
- | 28 | { title: 'Headings', items: [\ |
|
- | 29 | { title: 'Heading 1', format: 'h2' },\ |
|
- | 30 | { title: 'Heading 2', format: 'h3' },\ |
|
- | 31 | { title: 'Heading 3', format: 'h4' },\ |
|
- | 32 | { title: 'Heading 4', format: 'h5' },\ |
|
- | 33 | { title: 'Heading 5', format: 'h6' }\ |
|
- | 34 | ]},\ |
|
- | 35 | { title: 'OEF answers', items: [\ |
|
- | 36 | { title: 'Good answer', format: 'oef_indgood' },\ |
|
- | 37 | { title: 'Bad answer', format: 'oef_indbad' },\ |
|
- | 38 | { title: 'Partial answer', format: 'oef_indpartial' },\ |
|
- | 39 | { title: 'Forgotten answer', format: 'oef_indforget' },\ |
|
- | 40 | ]},\ |
|
- | 41 | { title: 'WIMS Messages', items: [\ |
|
- | 42 | { title: 'Success', format: 'wims_msg_success' },\ |
|
- | 43 | { title: 'Alert', format: 'wims_msg_alert' },\ |
|
- | 44 | { title: 'Warning', format: 'wims_msg_warning' },\ |
|
- | 45 | { title: 'Info', format: 'wims_msg_info' },\ |
|
- | 46 | { title: 'Help', format: 'wims_msg_help' },\ |
|
- | 47 | ]},\ |
|
- | 48 | { title: 'Other WIMS styles', items: [\ |
|
- | 49 | { title: 'Credits', format: 'wims_credits' },\ |
|
- | 50 | { title: 'Instructions', format: 'wims_instruction' },\ |
|
- | 51 | { title: 'Code', format: 'code' },\ |
|
- | 52 | { title: 'Blockquote', format: 'blockquote' },\ |
|
- | 53 | ]},\ |
|
- | 54 | ], |
|
- | 55 | !endif |
|
- | 56 | ||
5 | 57 | ||
6 | !let name_WYSIWYG_activate=Activate editor |
58 | !let name_WYSIWYG_activate=Activate editor |
7 | !let name_WYSIWYG_disable=Disable editor |
59 | !let name_WYSIWYG_disable=Disable editor |
8 | !if $lang=fr |
60 | !if $lang=fr |
9 | !set tiny_lang=language: 'fr_FR', |
61 | !set tiny_lang=language: 'fr_FR', |
Line 47... | Line 99... | ||
47 | }\ |
99 | }\ |
48 | });\ |
100 | });\ |
49 | /* Initialize editors */\ |
101 | /* Initialize editors */\ |
50 | tinymce.init({\ |
102 | tinymce.init({\ |
51 | selector:'$wims_read_parm',\ |
103 | selector:'$wims_read_parm',\ |
52 | plugins: |
104 | plugins: '$iEdit_plugins',\ |
53 | block_formats : tinymce.translate('Paragraph')+'=p;' +tinymce.translate('Heading |
105 | block_formats : tinymce.translate('Paragraph')+'=p;' +tinymce.translate('Heading 1')+'=h2;'+tinymce.translate('Heading 2')+'=h3;' +tinymce.translate('Heading 3')+'=h4;' +tinymce.translate('Heading 4')+'=h5;' +tinymce.translate('Heading 5')+'=h6;' +tinymce.translate('Preformatted')+'=pre;' +tinymce.translate('Blockquote')+'=blockquote;',\ |
54 | menubar: false,\ |
106 | menubar: false,\ |
55 | branding: false,\ |
107 | branding: false,\ |
56 | toolbar: |
108 | toolbar: '$iEdit_toolbar',\ |
57 | $tiny_lang\ |
109 | $tiny_lang\ |
- | 110 | $iEdit_formats\ |
|
58 | content_css : 'html/themes/$wims_theme/css.css',\ |
111 | content_css : 'html/themes/$wims_theme/css.css',\ |
59 | body_class: 'main_body',\ |
112 | body_class: 'main_body',\ |
60 | content_style : 'a, .ui-widget-content a{color:$wims_link_color;}a:hover, a:focus {color:$wims_hlink_color;}table.wimstable th{background-color: $wims_ref_bgcolor;color: $wims_ref_menucolor;}table.wimstable th a{color: $wims_ref_menucolor;}.wimstable caption a{color: $wims_ref_menucolor;}.wims_emph {color:$wims_ref_bgcolor;}input[type="submit"],input[type="button"],.main_body .wims_button{background-color:$wims_ref_button_bgcolor;color:$wims_ref_button_color;}.main_body .wims_button_help{background-color:$wims_ref_button_help_bgcolor;color:$wims_ref_button_help_color;}.property_fields{border-color:$wims_ref_bgcolor;}.property_fields legend{background-color: $wims_ref_bgcolor;}.property_fields legend,.property_fields legend>a{color:$wims_ref_menucolor;}.wims_color1 {background-color: $wims_ref_bgcolor;color:$wims_ref_menucolor;}.wims_color2 {background-color:$wims_ref_button_bgcolor;color:$wims_ref_button_color;}.wims_color3 {background-color:$wims_ref_button_help_bgcolor;color:$wims_ref_button_help_color;}'\ |
113 | content_style : 'a, .ui-widget-content a{color:$wims_link_color;}a:hover, a:focus {color:$wims_hlink_color;}table.wimstable th{background-color: $wims_ref_bgcolor;color: $wims_ref_menucolor;}table.wimstable th a{color: $wims_ref_menucolor;}.wimstable caption a{color: $wims_ref_menucolor;}.wims_emph {color:$wims_ref_bgcolor;}input[type="submit"],input[type="button"],.main_body .wims_button{background-color:$wims_ref_button_bgcolor;color:$wims_ref_button_color;}.main_body .wims_button_help{background-color:$wims_ref_button_help_bgcolor;color:$wims_ref_button_help_color;}.property_fields{border-color:$wims_ref_bgcolor;}.property_fields legend{background-color: $wims_ref_bgcolor;}.property_fields legend,.property_fields legend>a{color:$wims_ref_menucolor;}.wims_color1 {background-color: $wims_ref_bgcolor;color:$wims_ref_menucolor;}.wims_color2 {background-color:$wims_ref_button_bgcolor;color:$wims_ref_button_color;}.wims_color3 {background-color:$wims_ref_button_help_bgcolor;color:$wims_ref_button_help_color;}'\ |
61 | });\ |
114 | });\ |
62 | });</script> to $wims_html_header |
115 | });</script> to $wims_html_header |