Mercurial > public > madeira
comparison static/js/tinymce/examples/accessibility.html @ 45:966cde8635c0
For issue #3, created a separate news app.
Created import management command.
Using TinyMCE editor in the admin.
News model now stores HTML.
The news page is now paginated.
Each story has a perma-link now.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 15 Mar 2012 20:02:39 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
44:42a6bde9913c | 45:966cde8635c0 |
---|---|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
2 <html xmlns="http://www.w3.org/1999/xhtml"> | |
3 <head> | |
4 <title>Full featured example</title> | |
5 | |
6 <!-- TinyMCE --> | |
7 <script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script> | |
8 <script type="text/javascript"> | |
9 tinyMCE.init({ | |
10 // General options | |
11 mode : "textareas", | |
12 theme : "advanced", | |
13 plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave", | |
14 | |
15 // Theme options | |
16 theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", | |
17 theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", | |
18 theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", | |
19 theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft", | |
20 theme_advanced_toolbar_location : "top", | |
21 theme_advanced_toolbar_align : "left", | |
22 theme_advanced_statusbar_location : "bottom", | |
23 theme_advanced_resizing : true, | |
24 | |
25 // Example content CSS (should be your site CSS) | |
26 // using false to ensure that the default browser settings are used for best Accessibility | |
27 // ACCESSIBILITY SETTINGS | |
28 content_css : false, | |
29 // Use browser preferred colors for dialogs. | |
30 browser_preferred_colors : true, | |
31 detect_highcontrast : true, | |
32 | |
33 // Drop lists for link/image/media/template dialogs | |
34 template_external_list_url : "lists/template_list.js", | |
35 external_link_list_url : "lists/link_list.js", | |
36 external_image_list_url : "lists/image_list.js", | |
37 media_external_list_url : "lists/media_list.js", | |
38 | |
39 // Style formats | |
40 style_formats : [ | |
41 {title : 'Bold text', inline : 'b'}, | |
42 {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}}, | |
43 {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}}, | |
44 {title : 'Example 1', inline : 'span', classes : 'example1'}, | |
45 {title : 'Example 2', inline : 'span', classes : 'example2'}, | |
46 {title : 'Table styles'}, | |
47 {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'} | |
48 ], | |
49 | |
50 // Replace values for the template plugin | |
51 template_replace_values : { | |
52 username : "Some User", | |
53 staffid : "991234" | |
54 } | |
55 }); | |
56 </script> | |
57 <!-- /TinyMCE --> | |
58 | |
59 </head> | |
60 <body> | |
61 | |
62 <form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true"> | |
63 <div> | |
64 <h3>Full featured example, with Accessibility settings enabled</h3> | |
65 | |
66 <p> | |
67 This page has got the TinyMCE set up to work with configurations related to accessiblity enabled. | |
68 In particular | |
69 <ul> | |
70 <li>the <strong>content_css</strong> is set to false, to ensure that all default browser styles are used, </li> | |
71 <li>the <strong>browser_preferred_colors</strong> dialog option is used to ensure that default css is used for dialogs, </li> | |
72 <li>and the <strong>detect_highcontrast</strong> option has been set to ensure that highcontrast mode in Windows browsers | |
73 is detected and the toolbars are displayed in a high contrast mode.</li> | |
74 </ul> | |
75 </p> | |
76 | |
77 <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded --> | |
78 <div> | |
79 <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%"> | |
80 <p> | |
81 This is some example text that you can edit inside the <strong>TinyMCE editor</strong>. | |
82 </p> | |
83 <p> | |
84 Nam nisi elit, cursus in rhoncus sit amet, pulvinar laoreet leo. Nam sed lectus quam, ut sagittis tellus. Quisque dignissim mauris a augue rutrum tempor. Donec vitae purus nec massa vestibulum ornare sit amet id tellus. Nunc quam mauris, fermentum nec lacinia eget, sollicitudin nec ante. Aliquam molestie volutpat dapibus. Nunc interdum viverra sodales. Morbi laoreet pulvinar gravida. Quisque ut turpis sagittis nunc accumsan vehicula. Duis elementum congue ultrices. Cras faucibus feugiat arcu quis lacinia. In hac habitasse platea dictumst. Pellentesque fermentum magna sit amet tellus varius ullamcorper. Vestibulum at urna augue, eget varius neque. Fusce facilisis venenatis dapibus. Integer non sem at arcu euismod tempor nec sed nisl. Morbi ultricies, mauris ut ultricies adipiscing, felis odio condimentum massa, et luctus est nunc nec eros. | |
85 </p> | |
86 </textarea> | |
87 </div> | |
88 | |
89 <br /> | |
90 <input type="submit" name="save" value="Submit" /> | |
91 <input type="reset" name="reset" value="Reset" /> | |
92 </div> | |
93 </form> | |
94 | |
95 <script type="text/javascript"> | |
96 if (document.location.protocol == 'file:') { | |
97 alert("The examples might not work properly on the local file system due to security settings in your browser. Please use a real webserver."); | |
98 } | |
99 </script> | |
100 </body> | |
101 </html> |