Configure the new TinyMCE to have almost the same buttons as the old one.
darkmorford -
3cf3f8fd35f8
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -166,9 +166,6 tinyMCE.init({
166 166 <script type="text/javascript">
167 167 mce_config.selector = '#content';
168 168 mce_config.content_css = 'styles/megatokyo.css';
169 mce_config.style_formats = [
170 {title: 'Spoiler', inline: 'span', classes: 'spoiler'}
171 ];
172 169
173 170 tinymce.init(mce_config);
174 171 </script>
@@ -1,4 +1,17
1 1 var mce_config = {
2 plugins: 'charmap code image link paste preview',
3 style_formats_merge: true
2 menubar: false,
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 108 <script type="text/javascript">
109 109 mce_config.selector = '#content';
110 110 mce_config.content_css = 'styles/megatokyo.css';
111 mce_config.style_formats = [
112 {title: 'Spoiler', inline: 'span', classes: 'spoiler'}
113 ];
114 111
115 112 tinymce.init(mce_config);
116 113 </script>
Comments 0
You need to be logged in to leave comments. Login now