fix: editor tab key
This commit is contained in:
parent
59b8c8cac6
commit
a33ee961fe
5 changed files with 24 additions and 11 deletions
|
@ -84,8 +84,10 @@ globalThis.init_editor = () => {
|
|||
highlightFormatting: false,
|
||||
fencedCodeBlockHighlighting: false,
|
||||
xml: false,
|
||||
smartIndent: true,
|
||||
smartIndent: false,
|
||||
indentUnit: 4,
|
||||
tabSize: 4,
|
||||
indentWithTabs: false,
|
||||
placeholder: "",
|
||||
extraKeys: {
|
||||
Home: "goLineLeft",
|
||||
|
@ -93,6 +95,7 @@ globalThis.init_editor = () => {
|
|||
Enter: (cm) => {
|
||||
cm.replaceSelection("\n");
|
||||
},
|
||||
Tab: "insertSoftTab",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue