JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: merge ckeditor settings from cms
authorJason Woofenden <jason@jasonwoof.com>
Mon, 13 Jul 2015 22:00:42 +0000 (18:00 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Mon, 13 Jul 2015 22:00:42 +0000 (18:00 -0400)
metaform/template.html

index e24e674..09acf3d 100644 (file)
@@ -6,11 +6,23 @@
        <title><!--~~$title show {~~-->~plural cap~<!--~~}~~--></title>
        <link rel="stylesheet" href="style.css"><!--~html_editor_headers {~-->
        <!--~~$head {~~-->
        <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, {
        <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',
                                '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'],
                                        '/',
                                        ['Link', 'Unlink', 'Anchor'],
                                        ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'],
                                        '/',
-                                       ['Styles', 'Format', 'Font', 'FontSize'],
+                                       ['Styles', 'Font', 'FontSize'],
                                        ['TextColor', 'BGColor'],
                                        ['Maximize', 'ShowBlocks']
                                ]
                                        ['TextColor', 'BGColor'],
                                        ['Maximize', 'ShowBlocks']
                                ]