mirror of
https://github.com/zadam/trilium.git
synced 2025-12-07 16:04:23 +01:00
fix(EditableTest): cutIntoNoteCommand createNote to new API
This commit is contained in:
parent
adfa01b8e8
commit
a1b9033686
@ -154,7 +154,9 @@ export default function EditableText({ note, parentComponent, ntxId, noteContext
|
||||
// without await as this otherwise causes deadlock through component mutex
|
||||
const parentNotePath = appContext.tabManager.getActiveContextNotePath();
|
||||
if (noteContext && parentNotePath) {
|
||||
note_create.createNote(parentNotePath, {
|
||||
note_create.createNote({
|
||||
parentNoteLink: parentNotePath,
|
||||
target: "into",
|
||||
isProtected: note.isProtected,
|
||||
saveSelection: true,
|
||||
textEditor: await noteContext?.getTextEditor()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user