Not Reviewed
Show More
Add another comment
| @@ -166,9 +166,6 tinyMCE.init({ | |||||
|
|
166 | <script type="text/javascript"> |
|
166 | <script type="text/javascript"> |
|
|
167 | mce_config.selector = '#content'; |
|
167 | mce_config.selector = '#content'; |
|
|
168 | mce_config.content_css = 'styles/megatokyo.css'; |
|
168 | mce_config.content_css = 'styles/megatokyo.css'; |
|
|
169 | mce_config.style_formats = [ |
|
||
|
|
170 | {title: 'Spoiler', inline: 'span', classes: 'spoiler'} |
|
||
|
|
171 | ]; |
|
||
|
|
172 |
|
169 | ||
|
|
173 | tinymce.init(mce_config); |
|
170 | tinymce.init(mce_config); |
|
|
174 | </script> |
|
171 | </script> |
| @@ -1,4 +1,17 | |||||
|
|
1 | var mce_config = { |
|
1 | var mce_config = { |
|
|
2 | plugins: 'charmap code image link paste preview', |
|
2 | menubar: false, |
|
|
3 | style_formats_merge: true |
|
3 | plugins: 'charmap code image link lists paste preview', |
|
|
|
4 | style_formats: [ | ||
|
|
|
5 | {title: 'Headings', items: [ | ||
|
|
|
6 | {title: 'Heading 3', format: 'h3'}, | ||
|
|
|
7 | {title: 'Heading 4', format: 'h4'}, | ||
|
|
|
8 | {title: 'Heading 5', format: 'h5'}, | ||
|
|
|
9 | {title: 'Heading 6', format: 'h6'}, | ||
|
|
|
10 | ]}, | ||
|
|
|
11 | {title: 'Inline', items: [ | ||
|
|
|
12 | {title: 'Code', icon: 'code', format: 'code'}, | ||
|
|
|
13 | {title: 'Spoiler', inline: 'span', classes: 'spoiler'} | ||
|
|
|
14 | ]} | ||
|
|
|
15 | ], | ||
|
|
|
16 | toolbar: 'undo redo | bold italic underline strikethrough | styleselect | bullist numlist | link unlink image code' | ||
|
|
4 | }; |
|
17 | }; |
| @@ -108,9 +108,6 tinyMCE.init({ | |||||
|
|
108 | <script type="text/javascript"> |
|
108 | <script type="text/javascript"> |
|
|
109 | mce_config.selector = '#content'; |
|
109 | mce_config.selector = '#content'; |
|
|
110 | mce_config.content_css = 'styles/megatokyo.css'; |
|
110 | mce_config.content_css = 'styles/megatokyo.css'; |
|
|
111 | mce_config.style_formats = [ |
|
||
|
|
112 | {title: 'Spoiler', inline: 'span', classes: 'spoiler'} |
|
||
|
|
113 | ]; |
|
||
|
|
114 |
|
111 | ||
|
|
115 | tinymce.init(mce_config); |
|
112 | tinymce.init(mce_config); |
|
|
116 | </script> |
|
113 | </script> |
Comments 0
You need to be logged in to leave comments.
Login now
