mirror of
https://github.com/zadam/trilium.git
synced 2025-12-08 08:24:24 +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
|
// without await as this otherwise causes deadlock through component mutex
|
||||||
const parentNotePath = appContext.tabManager.getActiveContextNotePath();
|
const parentNotePath = appContext.tabManager.getActiveContextNotePath();
|
||||||
if (noteContext && parentNotePath) {
|
if (noteContext && parentNotePath) {
|
||||||
note_create.createNote(parentNotePath, {
|
note_create.createNote({
|
||||||
|
parentNoteLink: parentNotePath,
|
||||||
|
target: "into",
|
||||||
isProtected: note.isProtected,
|
isProtected: note.isProtected,
|
||||||
saveSelection: true,
|
saveSelection: true,
|
||||||
textEditor: await noteContext?.getTextEditor()
|
textEditor: await noteContext?.getTextEditor()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user