@@ -38,32 +38,52 @@ export default {
3838 name : 'insert' ,
3939 type : 'dropdown' ,
4040 style : 'descriptive' ,
41+ hideDisabled : true ,
42+ alwaysVisible : true ,
4143 items : [
42- { type : 'command' , name : 'insert-figure' , label : 'figure' } ,
43- { type : 'command' , name : 'insert-table' , label : 'table' } ,
44- { type : 'command' , name : 'insert-block-quote' , label : 'block-quote' } ,
45- { type : 'command' , name : 'insert-block-formula' , label : 'equation' } ,
46- { type : 'command' , name : 'insert-file' , label : 'file' } ,
47- { type : 'command' , name : 'insert-footnote' , label : 'footnote' } ,
48- { type : 'command' , name : 'insert-reference' , label : 'reference' } ,
49- { type : 'separator' , label : 'inline' } ,
50- { type : 'command' , name : 'insert-inline-formula' , label : 'math' } ,
51- { type : 'command' , name : 'insert-inline-graphic' , label : 'inline-graphic' } ,
52- { type : 'command' , name : 'create-external-link' , label : 'link' , icon : 'link' } ,
53- { type : 'command' , name : 'insert-xref-bibr' , label : 'citation' } ,
54- { type : 'command' , name : 'insert-xref-figure' , label : 'figure-reference' } ,
55- { type : 'command' , name : 'insert-xref-table' , label : 'table-reference' } ,
56- { type : 'command' , name : 'insert-xref-footnote' , label : 'footnote-reference' } ,
57- { type : 'command' , name : 'insert-xref-formula' , label : 'equation-reference' } ,
58- { type : 'command' , name : 'insert-xref-file' , label : 'file-reference' } ,
59- { type : 'separator' , label : 'metadata' } ,
60- { type : 'command' , name : 'insert-author' , label : 'author' } ,
61- { type : 'command' , name : 'insert-editor' , label : 'editor' } ,
62- { type : 'command' , name : 'insert-group' , label : 'group' } ,
63- { type : 'command' , name : 'insert-organisation' , label : 'affiliation' } ,
64- { type : 'command' , name : 'insert-funder' , label : 'funder' } ,
65- { type : 'command' , name : 'insert-keyword' , label : 'keyword' } ,
66- { type : 'command' , name : 'insert-subject' , label : 'subject' }
44+ {
45+ name : 'content' ,
46+ type : 'group' ,
47+ items : [
48+ { type : 'command' , name : 'insert-figure' , label : 'figure' } ,
49+ { type : 'command' , name : 'insert-table' , label : 'table' } ,
50+ { type : 'command' , name : 'insert-block-quote' , label : 'block-quote' } ,
51+ { type : 'command' , name : 'insert-block-formula' , label : 'equation' } ,
52+ { type : 'command' , name : 'insert-file' , label : 'file' } ,
53+ { type : 'command' , name : 'insert-footnote' , label : 'footnote' } ,
54+ { type : 'command' , name : 'insert-reference' , label : 'reference' }
55+ ]
56+ } ,
57+ {
58+ name : 'inline-content' ,
59+ type : 'group' ,
60+ label : 'inline' ,
61+ items : [
62+ { type : 'command' , name : 'insert-inline-formula' , label : 'math' } ,
63+ { type : 'command' , name : 'insert-inline-graphic' , label : 'inline-graphic' } ,
64+ { type : 'command' , name : 'create-external-link' , label : 'link' , icon : 'link' } ,
65+ { type : 'command' , name : 'insert-xref-bibr' , label : 'citation' } ,
66+ { type : 'command' , name : 'insert-xref-figure' , label : 'figure-reference' } ,
67+ { type : 'command' , name : 'insert-xref-table' , label : 'table-reference' } ,
68+ { type : 'command' , name : 'insert-xref-footnote' , label : 'footnote-reference' } ,
69+ { type : 'command' , name : 'insert-xref-formula' , label : 'equation-reference' } ,
70+ { type : 'command' , name : 'insert-xref-file' , label : 'file-reference' }
71+ ]
72+ } ,
73+ {
74+ name : 'metadata' ,
75+ type : 'group' ,
76+ label : 'metadata' ,
77+ items : [
78+ { type : 'command' , name : 'insert-author' , label : 'author' } ,
79+ { type : 'command' , name : 'insert-editor' , label : 'editor' } ,
80+ { type : 'command' , name : 'insert-group' , label : 'group' } ,
81+ { type : 'command' , name : 'insert-organisation' , label : 'affiliation' } ,
82+ { type : 'command' , name : 'insert-funder' , label : 'funder' } ,
83+ { type : 'command' , name : 'insert-keyword' , label : 'keyword' } ,
84+ { type : 'command' , name : 'insert-subject' , label : 'subject' }
85+ ]
86+ }
6787 ]
6888 } ,
6989 {
0 commit comments