xu0819 发表于 2023-8-17 09:29:34

公文编辑器的编辑功能按钮可以丰富一点嘛?

本帖最后由 xu0819 于 2023-8-17 09:29 编辑

目前默认的公文编辑器的按钮是只有下图所显示的这些


请问能够增加一些功能按钮嘛?最好是如下图这些按钮全显示出来




我在公文编辑器的编辑菜单中粘贴如下代码后公文编辑器按钮显示不全

代码:
return{
    "toolbarGroups": [{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
'/',
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
    ]}

请问如何使公文编辑器中的按钮全部显示?求管理大大解答。

论坛管理员 发表于 2023-8-17 16:41:07

参考:
return{
   
    "toolbarGroups": [
                { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
                { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
                '/',
                { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
                { name: 'forms', groups: [ 'forms' ] },
                '/',
                { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
                '/',
                { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
                '/',
                { name: 'links', groups: [ 'links' ] },
                { name: 'insert', groups: [ 'insert' ] },
                '/',
                { name: 'styles', groups: [ 'styles' ] },
                { name: 'colors', groups: [ 'colors' ] },
                { name: 'tools', groups: [ 'tools' ] },
                '/',
                { name: 'others', groups: [ 'others' ] },
                { name: 'about', groups: [ 'about' ] },
        ],
    "removeButtons": ''
}
页: [1]
查看完整版本: 公文编辑器的编辑功能按钮可以丰富一点嘛?