JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: merge ckeditor settings from cms
[wfpl.git] / metaform / template.html
index 5121acc..09acf3d 100644 (file)
@@ -6,11 +6,23 @@
        <title><!--~~$title show {~~-->~plural cap~<!--~~}~~--></title>
        <link rel="stylesheet" href="style.css"><!--~html_editor_headers {~-->
        <!--~~$head {~~-->
-       <script src="inc/ckeditor/ckeditor.js"></script>
+       <script src="inc/ckeditor/ckeditor.js?t=F0RD"></script>
        <script>
                function make_wysiwyg(name) {
                        CKEDITOR.replace(name, {
-                               'contentsCss': 'style.css',
+                               'contentsCss': 'style.css?m=~style.css mtime~',
+                               'allowedContent': true,
+                               bodyId: '~$basename~' + '_wysiwyg_' + name,
+                               'stylesSet': [
+                                       { name: 'Paragraph', element: 'p'},
+                                       { name: 'Page Headline', element: 'h1'},
+                                       { name: 'Section Headline', element: 'h2'},
+                                       { name: 'Subsection Headline', element: 'h3'},
+                                       { name: 'Tagline (under headline)', element: 'h4', attributes: { class: 'tagline'}},
+                                       { name: 'Quote', element: 'p', attributes: { class: 'quote'}},
+                                       { name: 'Quote Author', element: 'p', attributes: { class: 'attrib'}},
+                                       { name: 'div (generic box)', element: 'div'}
+                               ],
                                'uiColor': '#ccccff',
                                'removePlugins': 'forms,templates,smiley,pagebreak,save,newpage,preview,print',
                                'height': '300px',
@@ -25,7 +37,7 @@
                                        ['Link', 'Unlink', 'Anchor'],
                                        ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'],
                                        '/',
-                                       ['Styles', 'Format', 'Font', 'FontSize'],
+                                       ['Styles', 'Font', 'FontSize'],
                                        ['TextColor', 'BGColor'],
                                        ['Maximize', 'ShowBlocks']
                                ]
                        <div class="caption">~caption html~</div>
                        <div class="field"><select name="~name~"><option value="">Choose One:</option><!--~~~name~ states~~--></select></div><!--~}~--><!--~radio {~-->
                        <div class="caption">~caption html~</div>
-                       <div class="field">
-                               <!--~options {~-->
-                                       <input type="radio" name="~name~" value="~~~name~ radio_~i~~~">~option_caption html~<br>
-                               <!--~}~-->
+                       <div class="field"><!--~options {~-->
+                               <input type="radio" name="~name~" value="~~~name~ radio_~i~~~" id="~name~_~i~_radio"><label for="~name~_~i~_radio"> ~option_caption html~</label><br><!--~}~-->
                        </div><!--~}~--><!--~checkbox {~-->
                        <div class="caption"><input type="checkbox" name="~name~~~~name~ checked~~" id="~name~_checkbox"><label for="~name~_checkbox"> ~caption html~</label></div>
                        <div class="field"></div><!--~}~--><!--~submit {~-->