JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
turn off ckeditor's filtering/cleanup
[wfpl-cms.git] / admin_pages.html
index f72d501..214cfce 100644 (file)
@@ -1,8 +1,7 @@
 <!DOCTYPE html>
 
-<html lang="en">
+<html>
 <head>
-       <meta charset="utf-8" />
        <title><!--~$title show {~-->~$host~ Admin: <!--~listings {~-->Pages Listing<!--~}~--><!--~form {~--><!--~id {~-->Add a new page<!--~}~--><!--~id unset {~-->Edit page "~title html~"<!--~}~--><!--~}~--><!--~}~--></title>
        <!--~$head {~-->
        <script type="text/javascript" src="code/ckeditor/ckeditor.js"></script>
@@ -10,6 +9,16 @@
                function make_wysiwyg(name) {
                        CKEDITOR.replace(name, {
                                'contentsCss': 'style_01.css',
+                               'allowedContent': true,
+                               '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'}}
+                               ],
                                'uiColor': '#ccccff',
                                'removePlugins': 'forms,templates,smiley,pagebreak,save,newpage,preview,print',
                                'height': '300px',
@@ -24,7 +33,7 @@
                                        ['Link', 'Unlink', 'Anchor'],
                                        ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'],
                                        '/',
-                                       ['Styles', 'Format', 'Font', 'FontSize'],
+                                       ['Styles', 'Font', 'FontSize'],
                                        ['TextColor', 'BGColor'],
                                        ['Maximize', 'ShowBlocks']
                                ]
                        <div class="field_notes">(If you'd like this page to appear in the navigation with a shorter title.)</div>
                        <div class="field"><input type="text" name="nav_title" value="~nav_title attr~"></div>
 
-                       <div class="caption">Content</div>
+                       <div class="caption">Page Contents</div>
                        <div class="field_notes">
-                               <ul>
+                               <ul class="first">
+                                       <li style="color: red; list-style: none">Please read these instructions in full:</li>
                                        <li>If you don't see an editor below (with buttons in it) then please try this page in <a href="http://getfirefox.com">Mozilla FireFox</a> or <a href="http://www.google.com/chrome/">Google Chrome</a>.</li>
-                                       <li>If you're pasting from Microsoft Word, please use the "paste from word" button (4 right of the scissors).</li>
-                                       <li>In the link dialog, you can make a link to another page on this site by entering that page's "filename" in the URL field.</li>
+                                       <li>If you're pasting from Microsoft Word, please use the "paste from word" button (looks like a clipboard with a "W").</li>
+                                       <li>To make a link, type the text to be clicked, select it, click the "Link" button (looks like a short chain) and paste the web address (where the link should point to) into the "URL" field. Exception: If you're making a link to another page on this site, please remove the "http://~$host~/" from the beginning of the "URL" field and set the "Protocol" to &lt;other&gt;.</li>
                                </ul>
                        </div>
                        <div class="field"><textarea class="html_editor" rows="20" cols="50" id="content" name="content">~content html~</textarea><script type="text/javascript">make_wysiwyg('content');</script></div>