comparison src/test/tiny.html @ 32:72a1b77b4548

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 29 Jul 2022 13:57:20 -0600
parents 6d265f5e18e2
children 1ce75c5ab0f7
comparison
equal deleted inserted replaced
31:6d265f5e18e2 32:72a1b77b4548
175 }); 175 });
176 }, 176 },
177 }); 177 });
178 178
179 editor.ui.registry.addToggleButton('styleCode', { 179 editor.ui.registry.addToggleButton('styleCode', {
180 icon: 'sourcecode', 180 icon: 'code-sample',
181 tooltip: 'Code', 181 tooltip: 'Code',
182 onAction: function(api) { 182 onAction: function(api) {
183 editor.execCommand('mceToggleFormat', false, 'code'); 183 editor.execCommand('mceToggleFormat', false, 'code');
184 }, 184 },
185 onSetup: function(api) { 185 onSetup: function(api) {
208 tinymce.init({ 208 tinymce.init({
209 selector: 'textarea', 209 selector: 'textarea',
210 setup: tinymceSetup, 210 setup: tinymceSetup,
211 //menubar: false, 211 //menubar: false,
212 statusbar: false, 212 statusbar: false,
213 plugins: ['link', 'image', 'media', 'lists', 'code', 'autoresize'],
213 toolbar: 'link insertImage insertVideo | styleCode bold italic underline strikethrough superscript styleText | blockquote numlist bullist', 214 toolbar: 'link insertImage insertVideo | styleCode bold italic underline strikethrough superscript styleText | blockquote numlist bullist',
214 plugins: ['link', 'image', 'media', 'lists', 'code', 'autoresize'],
215 autoresize_bottom_margin: 0, 215 autoresize_bottom_margin: 0,
216 link_target_list: false, 216 link_target_list: false,
217 link_title: false, 217 link_title: false,
218 object_resizing: false, 218 object_resizing: false,
219 contextmenu: false, 219 contextmenu: false,