mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-29 21:21:15 +02:00
Plugins: Rename command "editorSetText" to "editor.setText"
This commit is contained in:
parent
19a8b6c285
commit
6463af0c31
@ -90,7 +90,7 @@ const declarations: CommandDeclaration[] = [
|
|||||||
name: 'replaceSelection',
|
name: 'replaceSelection',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'editorSetText',
|
name: 'editor.setText',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ function editorCommandRuntime(declaration: CommandDeclaration, editorRef: any, s
|
|||||||
type: ScrollOptionTypes.Hash,
|
type: ScrollOptionTypes.Hash,
|
||||||
value: args[0],
|
value: args[0],
|
||||||
});
|
});
|
||||||
} else if (declaration.name === 'editorSetText') {
|
} else if (declaration.name === 'editor.setText') {
|
||||||
setFormNote((prev: FormNote) => {
|
setFormNote((prev: FormNote) => {
|
||||||
return { ...prev, body: args[0] };
|
return { ...prev, body: args[0] };
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user