mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-19 00:42:29 +08:00
refactor(editor): move floating toolbar config into Trilium repo
This commit is contained in:
parent
7fbe4c10a5
commit
a209d6872a
@ -17,54 +17,6 @@ export default class BalloonEditor extends BalloonEditorBase {
|
|||||||
];
|
];
|
||||||
|
|
||||||
public static override defaultConfig = {
|
public static override defaultConfig = {
|
||||||
...COMMON_SETTINGS,
|
...COMMON_SETTINGS
|
||||||
|
|
||||||
toolbar: {
|
|
||||||
items: [
|
|
||||||
'fontSize',
|
|
||||||
'bold',
|
|
||||||
'italic',
|
|
||||||
'underline',
|
|
||||||
'strikethrough',
|
|
||||||
'superscript',
|
|
||||||
'subscript',
|
|
||||||
'fontColor',
|
|
||||||
'fontBackgroundColor',
|
|
||||||
'code',
|
|
||||||
'link',
|
|
||||||
'removeFormat',
|
|
||||||
'internallink',
|
|
||||||
'cuttonote'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
blockToolbar: [
|
|
||||||
'heading',
|
|
||||||
'|',
|
|
||||||
'bulletedList', 'numberedList', 'todoList',
|
|
||||||
'|',
|
|
||||||
'blockQuote', 'codeBlock', 'insertTable',
|
|
||||||
'footnote',
|
|
||||||
{
|
|
||||||
label: "Insert",
|
|
||||||
icon: "plus",
|
|
||||||
items: [
|
|
||||||
'internallink',
|
|
||||||
'includeNote',
|
|
||||||
'|',
|
|
||||||
'math',
|
|
||||||
'mermaid',
|
|
||||||
'horizontalLine',
|
|
||||||
'pageBreak'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
'|',
|
|
||||||
'outdent', 'indent',
|
|
||||||
'|',
|
|
||||||
'imageUpload',
|
|
||||||
'markdownImport',
|
|
||||||
'specialCharacters',
|
|
||||||
'findAndReplace'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user