Not Reviewed
Show More
Add another comment
| @@ -0,0 +1,4 | |||
|
|
1 | var mce_config = { | |
|
|
2 | plugins: 'charmap code image link paste preview', | |
|
|
3 | style_formats_merge: true | |
|
|
4 | }; | |
| @@ -57,7 +57,7 if( $_POST ) { | |||
|
|
57 | 57 | /////////////////////// Display Edit Form /////////////////////// |
|
|
58 | 58 | |
|
|
59 | 59 | |
|
|
60 | adminhead('Edit Page'); | |
|
|
60 | adminhead('Edit Static Page'); | |
|
|
61 | 61 | adminmenu('manage-pages.php'); |
|
|
62 | 62 | |
|
|
63 | 63 | |
| @@ -81,7 +81,7 tinyMCE.init({ | |||
|
|
81 | 81 | theme_advanced_blockformats : "p,h3,h4,h5,h6", |
|
|
82 | 82 | theme_advanced_resizing : true, |
|
|
83 | 83 | theme_advanced_styles : "Spoiler=spoiler" |
|
|
84 | ||
|
|
84 | ||
|
|
85 | 85 | }); |
|
|
86 | 86 | </script> |
|
|
87 | 87 | --> |
| @@ -162,16 +162,15 tinyMCE.init({ | |||
|
|
162 | 162 | </form> |
|
|
163 | 163 | |
|
|
164 | 164 | <script src="include/tinymce/tinymce.min.js"></script> |
|
|
165 | <script src="include/mce_config.js"></script> | |
|
|
165 | 166 | <script type="text/javascript"> |
|
|
166 | tinymce.init({ | |
|
|
167 | selector: '#content', | |
|
|
168 | plugins: 'charmap code image link paste preview', | |
|
|
169 | content_css: 'styles/megatokyo.css', | |
|
|
170 | style_formats_merge: true, | |
|
|
171 | style_formats: [ | |
|
|
172 | {title: 'Spoiler', inline: 'span', classes: 'spoiler'} | |
|
|
173 | ] | |
|
|
174 | }); | |
|
|
167 | mce_config.selector = '#content'; | |
|
|
168 | mce_config.content_css = 'styles/megatokyo.css'; | |
|
|
169 | mce_config.style_formats = [ | |
|
|
170 | {title: 'Spoiler', inline: 'span', classes: 'spoiler'} | |
|
|
171 | ]; | |
|
|
172 | ||
|
|
173 | tinymce.init(mce_config); | |
|
|
175 | 174 | </script> |
|
|
176 | 175 | |
|
|
177 | 176 | <?php adminfooter() ?> |
| @@ -165,6 +165,7 adminmenu('manage-rants.php'); | |||
|
|
165 | 165 | |
|
|
166 | 166 | ?> |
|
|
167 | 167 | |
|
|
168 | <!-- | |
|
|
168 | 169 | <script language="javascript" type="text/javascript" src="include/tiny_mce/tiny_mce.js"></script> |
|
|
169 | 170 | <script language="javascript" type="text/javascript"> |
|
|
170 | 171 | tinyMCE.init({ |
| @@ -190,6 +191,7 tinyMCE.init({ | |||
|
|
190 | 191 | plugins:"safari,inlinepopups,autosave,paste,media,fullscreen,contextmenu,advimage,advlink,visualchars,preview" |
|
|
191 | 192 | }); |
|
|
192 | 193 | </script> |
|
|
194 | --> | |
|
|
193 | 195 | |
|
|
194 | 196 | <h2>Editing Rant "<?php echo htmlentities($rant->title, ENT_COMPAT, 'UTF-8') ; ?>"</h2> |
|
|
195 | 197 | |
| @@ -343,4 +345,12 tinyMCE.init({ | |||
|
|
343 | 345 | </div> |
|
|
344 | 346 | </form> |
|
|
345 | 347 | |
|
|
348 | <script src="include/tinymce/tinymce.min.js"></script> | |
|
|
349 | <script src="include/mce_config.js"></script> | |
|
|
350 | <script type="text/javascript"> | |
|
|
351 | mce_config.selector = 'textarea'; | |
|
|
352 | ||
|
|
353 | tinymce.init(mce_config); | |
|
|
354 | </script> | |
|
|
355 | ||
|
|
346 | 356 | <?php adminfooter() ?> |
| @@ -12,6 +12,7 adminhead('Write Static Page'); | |||
|
|
12 | 12 | adminmenu('post-page.php'); |
|
|
13 | 13 | |
|
|
14 | 14 | ?> |
|
|
15 | <!-- | |
|
|
15 | 16 | <script language="javascript" type="text/javascript" src="include/tiny_mce/tiny_mce.js"></script> |
|
|
16 | 17 | <script language="javascript" type="text/javascript"> |
|
|
17 | 18 | tinyMCE.init({ |
| @@ -28,6 +29,7 tinyMCE.init({ | |||
|
|
28 | 29 | theme_advanced_blockformats : "p,h3,h4,h5,h6" |
|
|
29 | 30 | }); |
|
|
30 | 31 | </script> |
|
|
32 | --> | |
|
|
31 | 33 | <h2>Create New Page</h2> |
|
|
32 | 34 | |
|
|
33 | 35 | <form enctype="multipart/form-data" action="edit-page.php" method="post" name="post" id="post"> |
| @@ -101,4 +103,16 tinyMCE.init({ | |||
|
|
101 | 103 | |
|
|
102 | 104 | </form> |
|
|
103 | 105 | |
|
|
106 | <script src="include/tinymce/tinymce.min.js"></script> | |
|
|
107 | <script src="include/mce_config.js"></script> | |
|
|
108 | <script type="text/javascript"> | |
|
|
109 | mce_config.selector = '#content'; | |
|
|
110 | mce_config.content_css = 'styles/megatokyo.css'; | |
|
|
111 | mce_config.style_formats = [ | |
|
|
112 | {title: 'Spoiler', inline: 'span', classes: 'spoiler'} | |
|
|
113 | ]; | |
|
|
114 | ||
|
|
115 | tinymce.init(mce_config); | |
|
|
116 | </script> | |
|
|
117 | ||
|
|
104 | 118 | <?php adminfooter() ?> |
| @@ -15,6 +15,7 $rant_image_ext = $mtdb->getOne( 'SELECT extension FROM media_t WHERE id=' . (in | |||
|
|
15 | 15 | |
|
|
16 | 16 | ?> |
|
|
17 | 17 | |
|
|
18 | <!-- | |
|
|
18 | 19 | <script language="javascript" type="text/javascript" src="include/tiny_mce/tiny_mce.js"></script> |
|
|
19 | 20 | <script language="javascript" type="text/javascript"> |
|
|
20 | 21 | tinyMCE.init({ |
| @@ -40,6 +41,7 tinyMCE.init({ | |||
|
|
40 | 41 | plugins:"safari,inlinepopups,autosave,paste,media,fullscreen,contextmenu,advimage,advlink,visualchars,preview" |
|
|
41 | 42 | }); |
|
|
42 | 43 | </script> |
|
|
44 | --> | |
|
|
43 | 45 | |
|
|
44 | 46 | <h2>Create New Rant</h2> |
|
|
45 | 47 | |
| @@ -191,4 +193,12 tinyMCE.init({ | |||
|
|
191 | 193 | |
|
|
192 | 194 | </form> |
|
|
193 | 195 | |
|
|
196 | <script src="include/tinymce/tinymce.min.js"></script> | |
|
|
197 | <script src="include/mce_config.js"></script> | |
|
|
198 | <script type="text/javascript"> | |
|
|
199 | mce_config.selector = 'textarea'; | |
|
|
200 | ||
|
|
201 | tinymce.init(mce_config); | |
|
|
202 | </script> | |
|
|
203 | ||
|
|
194 | 204 | <?php adminfooter() ?> |
Comments 0
You need to be logged in to leave comments.
Login now
