mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 22:44:25 +01:00
fix(EditableTest): cutIntoNoteCommand createNote to new API
This commit is contained in:
parent
213c36ba84
commit
bdcb84a394
@ -155,7 +155,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