Pull-down Menu Availability
Use "editor.menu.show
" key to determine whether pull-down menu should be shown or not (true by default).
synapeditor.config.js
{ 'editor.menu.show': true }
Menu Layout
Use "editor.menu.list
" key to determine top-level menu items.
synapeditor.config.js
{ 'editor.menu.list': [ 'file', 'edit', 'view', 'insert', 'format', 'table', 'tools' ] }
Use "editor.menu.definition
" key to specify sub-level menu items.
synapeditor.config.js
{ 'editor.menu.definition': { 'file': [ 'new', 'open', '-', 'template', 'autoSave', 'print', 'pageBreak' ], 'edit': [ 'undo', 'redo', '-', 'copy', '-', 'find' ], 'view': [ 'fullScreen', '-', 'source', 'preview' ], 'insert': [ 'link', 'image', 'background', '-', 'video', 'file', 'horizontalLine', '-', 'specialCharacter', 'emoji' ], 'format': [ 'bold', 'italic', 'underline', 'strike', '-', 'superScript', 'subScript', '-', { 'groupName': 'list', 'subMenuItems': [ 'bulletList', 'numberedList', 'multiLevelList' ] }, 'increaseIndent', 'decreaseIndent', '-', { 'groupName': 'align', 'subMenuItems': [ 'alignLeft', 'alignCenter', 'alignRight', 'alignJustify' ] }, { 'groupName': 'format', 'subMenuItems': [ 'copyRunStyle', 'pasteRunStyle', 'removeRunStyle' ] }, 'paragraphProperties' ], 'table': [ 'table', 'deleteTable', 'tableProperties', '-', { 'groupName': 'row', 'subMenuItems': [ 'insertRowBefore', 'insertRowAfter', 'deleteRow' ] }, { 'groupName': 'column', 'subMenuItems': [ 'insertColBefore', 'insertColAfter', 'deleteCol' ] }, { 'groupName': 'cell', 'subMenuItems': [ 'mergeCell', 'splitCell', 'cellProperties' ] } ], 'tools': [ { 'groupName': 'conversion', 'subMenuItems': ['upperCase', 'lowerCase', 'titleCase', 'toggleCase'] } ] } }
Example
Menu layout | Result |
---|---|
'file': [ 'new', 'open', '-', 'template', 'autoSave', 'print', 'pageBreak' ] | |
'edit': [ 'undo', 'redo', '-', 'copy', '-', 'find' ] | |
'view': [ 'fullScreen', '-', 'source', 'preview' ] | |
'insert': [ 'link', 'image', 'background', '-', 'video', 'file', 'horizontalLine', '-', 'specialCharacter', 'emoji' ] | |
'format': [ 'bold', 'italic', 'underline', 'strike', '-', 'superScript', 'subScript', '-', { 'groupName': 'list', 'subMenuItems': [ 'bulletList', 'numberedList', 'multiLevelList' ] }, 'increaseIndent', 'decreaseIndent', '-', { 'groupName': 'align', 'subMenuItems': [ 'alignLeft', 'alignCenter', 'alignRight', 'alignJustify' ] }, { 'groupName': 'style', 'subMenuItems': [ 'copyRunStyle', 'pasteRunStyle', 'removeRunStyle' ] }, 'paragraphProperties' ] |
|
'table': [ 'table', 'deleteTable', 'tableProperties', '-', { 'groupName': 'row', 'subMenuItems': [ 'insertRowBefore', 'insertRowAfter', 'deleteRow' ] }, { 'groupName': 'column', 'subMenuItems': [ 'insertColBefore', 'insertColAfter', 'deleteCol' ] }, { 'groupName': 'cell', 'subMenuItems': [ 'mergeCell', 'splitCell', 'cellProperties' ] } ] | |
'tools': [{ 'groupName': 'conversion', 'subMenuItems': [ }] |