如何在TinyMce 4中分组图标(How to Group icons in TinyMce 4)

在TinyMCE 3x中,我们使用了如下设置:

theme_advanced_buttons1:

theme_advanced_buttons2:

等。这可以在tinymce.init中用于分组图标。

我怎样才能在tinymce 4中做同样的事情? 有没有办法通过tinymce.init手动更改/添加分组?

谢谢

In TinyMCE 3x we used have setting something like below:

theme_advanced_buttons1:

theme_advanced_buttons2:

etc .. This can be used in tinymce.init to group icons.

how can I do the same in tinymce 4? Is there a way to manually change/add grouping through tinymce.init?

Thanks

最满意答案

在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' ] });

In TinyMCE 4 you can pass an array to the toolbar configuration setting to allow for multiple rows of toolbar buttons.

https://www.tinymce.com/docs/configure/editor-appearance/#toolbar https://www.tinymce.com/docs/configure/editor-appearance/#usingmultipletoolbars

For example:

tinymce.init({ selector: 'textarea', toolbar: [ 'undo redo | styleselect | bold italic | link image', 'alignleft aligncenter alignright' ] });如何在TinyMce 4中分组图标(How to Group icons in TinyMce 4)

在TinyMCE 3x中,我们使用了如下设置:

theme_advanced_buttons1:

theme_advanced_buttons2:

等。这可以在tinymce.init中用于分组图标。

我怎样才能在tinymce 4中做同样的事情? 有没有办法通过tinymce.init手动更改/添加分组?

谢谢

In TinyMCE 3x we used have setting something like below:

theme_advanced_buttons1:

theme_advanced_buttons2:

etc .. This can be used in tinymce.init to group icons.

how can I do the same in tinymce 4? Is there a way to manually change/add grouping through tinymce.init?

Thanks

最满意答案

在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' ] });

In TinyMCE 4 you can pass an array to the toolbar configuration setting to allow for multiple rows of toolbar buttons.

https://www.tinymce.com/docs/configure/editor-appearance/#toolbar https://www.tinymce.com/docs/configure/editor-appearance/#usingmultipletoolbars

For example:

tinymce.init({ selector: 'textarea', toolbar: [ 'undo redo | styleselect | bold italic | link image', 'alignleft aligncenter alignright' ] });