fix: remove newline in smart inputs - resolved #2277
This commit is contained in:
@@ -35,7 +35,6 @@ import { EditorState, Extension } from "@codemirror/state"
|
|||||||
import clone from "lodash/clone"
|
import clone from "lodash/clone"
|
||||||
import { tooltips } from "@codemirror/tooltip"
|
import { tooltips } from "@codemirror/tooltip"
|
||||||
import { history, historyKeymap } from "@codemirror/history"
|
import { history, historyKeymap } from "@codemirror/history"
|
||||||
import { defaultKeymap } from "@codemirror/commands"
|
|
||||||
import { inputTheme } from "~/helpers/editor/themes/baseTheme"
|
import { inputTheme } from "~/helpers/editor/themes/baseTheme"
|
||||||
import { HoppReactiveEnvPlugin } from "~/helpers/editor/extensions/HoppEnvironment"
|
import { HoppReactiveEnvPlugin } from "~/helpers/editor/extensions/HoppEnvironment"
|
||||||
import { useReadonlyStream } from "~/helpers/utils/composables"
|
import { useReadonlyStream } from "~/helpers/utils/composables"
|
||||||
@@ -177,7 +176,7 @@ const initView = (el: any) => {
|
|||||||
}
|
}
|
||||||
),
|
),
|
||||||
history(),
|
history(),
|
||||||
keymap.of([...defaultKeymap, ...historyKeymap]),
|
keymap.of([...historyKeymap]),
|
||||||
]
|
]
|
||||||
|
|
||||||
view.value = new EditorView({
|
view.value = new EditorView({
|
||||||
|
|||||||
Reference in New Issue
Block a user