Mercurial > public > madeira
comparison static/js/tinymce/examples/word.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>Word processor example</title> | |
5 <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
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 skin : "o2k7", | |
14 plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave", | |
15 | |
16 // Theme options | |
17 theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", | |
18 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", | |
19 theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", | |
20 theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft", | |
21 theme_advanced_toolbar_location : "top", | |
22 theme_advanced_toolbar_align : "left", | |
23 theme_advanced_statusbar_location : "bottom", | |
24 theme_advanced_resizing : true, | |
25 | |
26 // Example word content CSS (should be your site CSS) this one removes paragraph margins | |
27 content_css : "css/word.css", | |
28 | |
29 // Drop lists for link/image/media/template dialogs | |
30 template_external_list_url : "lists/template_list.js", | |
31 external_link_list_url : "lists/link_list.js", | |
32 external_image_list_url : "lists/image_list.js", | |
33 media_external_list_url : "lists/media_list.js", | |
34 | |
35 // Replace values for the template plugin | |
36 template_replace_values : { | |
37 username : "Some User", | |
38 staffid : "991234" | |
39 } | |
40 }); | |
41 </script> | |
42 <!-- /TinyMCE --> | |
43 | |
44 </head> | |
45 <body> | |
46 | |
47 <form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true"> | |
48 <h3>Word processor example</h3> | |
49 | |
50 <p> | |
51 This page shows you how to configure TinyMCE to work more like common word processors. | |
52 There are more examples on how to use TinyMCE in the <a href="http://tinymce.moxiecode.com/examples/">Wiki</a>. | |
53 </p> | |
54 | |
55 <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded --> | |
56 <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%"> | |
57 <p>This is the first paragraph.</p> | |
58 <p>This is the second paragraph.</p> | |
59 <p>This is the third paragraph.</p> | |
60 </textarea> | |
61 | |
62 <br /> | |
63 <input type="submit" name="save" value="Submit" /> | |
64 <input type="reset" name="reset" value="Reset" /> | |
65 </form> | |
66 <script type="text/javascript"> | |
67 if (document.location.protocol == 'file:') { | |
68 alert("The examples might not work properly on the local file system due to security settings in your browser. Please use a real webserver."); | |
69 } | |
70 </script> | |
71 </body> | |
72 </html> |