我从源代码将 CKEditor5 集成到我的 create React 应用程序中。现在,我想在工具栏的新行中渲染溢出的按钮,但它们显示在单独的菜单项中。
如何在新行而不是主行中显示按钮?
这是我的配置:
ClassicEditor.defaultConfig = {
toolbar: {
items: [
'Essentials',
'heading',
'Mathtype',
'ChemType',
'|',
'bold',
'italic',
'underline',
....
]
}
}
Use shouldNotGroupWhenFull: true
的财产toolbar https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editorconfig-EditorConfig.html#member-toolbar像这样:
toolbar: {
items: [ ... ],
shouldNotGroupWhenFull: true
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)