如何在 TinyMce 4 中对图标进行分组
How to Group icons in TinyMce 4
在 TinyMCE 3x 中,我们使用了如下设置:
theme_advanced_buttons1:
theme_advanced_buttons2:
等..
这可以在 tinymce.init 中用于对图标进行分组。
如何在 tinymce 4 中做同样的事情?有没有办法通过 tinymce.init 手动 change/add 分组?
谢谢
在 TinyMCE 4 中,您可以将数组传递给 toolbar
配置设置以允许多行工具栏按钮。
https://www.tinymce.com/docs/configure/editor-appearance/#toolbar
https://www.tinymce.com/docs/configure/editor-appearance/#usingmultipletoolbars
例如:
tinymce.init({
selector: 'textarea',
toolbar: [
'undo redo | styleselect | bold italic | link image',
'alignleft aligncenter alignright'
]
});
在 TinyMCE 3x 中,我们使用了如下设置:
theme_advanced_buttons1:
theme_advanced_buttons2:
等.. 这可以在 tinymce.init 中用于对图标进行分组。
如何在 tinymce 4 中做同样的事情?有没有办法通过 tinymce.init 手动 change/add 分组?
谢谢
在 TinyMCE 4 中,您可以将数组传递给 toolbar
配置设置以允许多行工具栏按钮。
https://www.tinymce.com/docs/configure/editor-appearance/#toolbar https://www.tinymce.com/docs/configure/editor-appearance/#usingmultipletoolbars
例如:
tinymce.init({
selector: 'textarea',
toolbar: [
'undo redo | styleselect | bold italic | link image',
'alignleft aligncenter alignright'
]
});