Clean up code for old version of TinyMCE.
darkmorford -
def621eac278
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -63,30 +63,6 adminmenu('manage-pages.php');
63
63
64 ?>
64 ?>
65
65
66 <!--
67 <script language="javascript" type="text/javascript" src="include/tiny_mce/tiny_mce.js"></script>
68 <script language="javascript" type="text/javascript">
69 tinyMCE.init({
70 mode : "exact",
71 elements: "content",
72 theme : "advanced",
73 theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link,unlink,code,formatselect,styleselect",
74 theme_advanced_buttons2 : "",
75 theme_advanced_buttons3 : "",
76 theme_advanced_toolbar_location : "top",
77 theme_advanced_toolbar_align : "left",
78 theme_advanced_path_location : "bottom",
79 extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],"
80 + "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],iframe[frameborder|height|src|width|scrolling|allowfullscreen]",
81 theme_advanced_blockformats : "p,h3,h4,h5,h6",
82 theme_advanced_resizing : true,
83 theme_advanced_styles : "Spoiler=spoiler"
84
85 });
86 </script>
87 -->
88
89
90 <h2>Editing Page "<?php echo htmlentities($page->title, ENT_COMPAT, 'UTF-8') ; ?>"</h2>
66 <h2>Editing Page "<?php echo htmlentities($page->title, ENT_COMPAT, 'UTF-8') ; ?>"</h2>
91
67
92 <form enctype="multipart/form-data" action="edit-page.php" method="post" name="post" id="post">
68 <form enctype="multipart/form-data" action="edit-page.php" method="post" name="post" id="post">
@@ -165,34 +165,6 adminmenu('manage-rants.php');
165
165
166 ?>
166 ?>
167
167
168 <!--
169 <script language="javascript" type="text/javascript" src="include/tiny_mce/tiny_mce.js"></script>
170 <script language="javascript" type="text/javascript">
171 tinyMCE.init({
172 mode : "textareas",
173 theme : "advanced",
174 theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontsizeselect,|,cut,copy,paste,pastetext,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,|,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
175 theme_advanced_buttons2 : "hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,fullscreen,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
176 theme_advanced_buttons3 : "",
177 plugin_preview_width : "350",
178 plugin_preview_height : "700",
179 language:"en",
180 theme_advanced_toolbar_location:"top",
181 theme_advanced_toolbar_align:"left",
182 theme_advanced_statusbar_location:"bottom",
183 theme_advanced_resizing:"1",
184 theme_advanced_resize_horizontal:"",
185 paste_convert_middot_lists:"1",
186 paste_remove_spans:"1",
187 paste_remove_styles:"1",
188 gecko_spellcheck:"1",
189 extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],iframe[src|width|height|scrolling|frameborder|style]",
190 theme_advanced_blockformats : "p,h3,h4,h5,h6",
191 plugins:"safari,inlinepopups,autosave,paste,media,fullscreen,contextmenu,advimage,advlink,visualchars,preview"
192 });
193 </script>
194 -->
195
196 <h2>Editing Rant "<?php echo htmlentities($rant->title, ENT_COMPAT, 'UTF-8') ; ?>"</h2>
168 <h2>Editing Rant "<?php echo htmlentities($rant->title, ENT_COMPAT, 'UTF-8') ; ?>"</h2>
197
169
198 <form enctype="multipart/form-data" action="edit-rant.php" method="post" name="post" id="post">
170 <form enctype="multipart/form-data" action="edit-rant.php" method="post" name="post" id="post">
@@ -12,24 +12,6 adminhead('Write Static Page');
12 adminmenu('post-page.php');
12 adminmenu('post-page.php');
13
13
14 ?>
14 ?>
15 <!--
16 <script language="javascript" type="text/javascript" src="include/tiny_mce/tiny_mce.js"></script>
17 <script language="javascript" type="text/javascript">
18 tinyMCE.init({
19 mode : "exact",
20 elements: "content",
21 theme : "advanced",
22 theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,link,unlink,code,formatselect",
23 theme_advanced_buttons2 : "",
24 theme_advanced_buttons3 : "",
25 theme_advanced_toolbar_location : "top",
26 theme_advanced_toolbar_align : "left",
27 theme_advanced_path_location : "bottom",
28 extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
29 theme_advanced_blockformats : "p,h3,h4,h5,h6"
30 });
31 </script>
32 -->
33 <h2>Create New Page</h2>
15 <h2>Create New Page</h2>
34
16
35 <form enctype="multipart/form-data" action="edit-page.php" method="post" name="post" id="post">
17 <form enctype="multipart/form-data" action="edit-page.php" method="post" name="post" id="post">
@@ -15,34 +15,6 $rant_image_ext = $mtdb->getOne( 'SELECT extension FROM media_t WHERE id=' . (in
15
15
16 ?>
16 ?>
17
17
18 <!--
19 <script language="javascript" type="text/javascript" src="include/tiny_mce/tiny_mce.js"></script>
20 <script language="javascript" type="text/javascript">
21 tinyMCE.init({
22 mode : "textareas",
23 theme : "advanced",
24 theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,|,image,media,charmap,|,formatselect,forecolor,removeformat,|,pastetext,pasteword,|,outdent,indent,|,undo,redo,|,code,visualchars,|,fullscreen,preview",
25 theme_advanced_buttons2:"",
26 theme_advanced_buttons3 : "",
27 plugin_preview_width : "350",
28 plugin_preview_height : "700",
29 language:"en",
30 theme_advanced_toolbar_location:"top",
31 theme_advanced_toolbar_align:"left",
32 theme_advanced_statusbar_location:"bottom",
33 theme_advanced_resizing:"1",
34 theme_advanced_resize_horizontal:"",
35 paste_convert_middot_lists:"1",
36 paste_remove_spans:"1",
37 paste_remove_styles:"1",
38 gecko_spellcheck:"1",
39 extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
40 theme_advanced_blockformats : "p,h3,h4,h5,h6",
41 plugins:"safari,inlinepopups,autosave,paste,media,fullscreen,contextmenu,advimage,advlink,visualchars,preview"
42 });
43 </script>
44 -->
45
46 <h2>Create New Rant</h2>
18 <h2>Create New Rant</h2>
47
19
48 <form enctype="multipart/form-data" action="edit-rant.php" method="post" name="post" id="post">
20 <form enctype="multipart/form-data" action="edit-rant.php" method="post" name="post" id="post">
Comments 0
You need to be logged in to leave comments. Login now