mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +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: 'editorSetText',
|
||||
name: 'editor.setText',
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -40,7 +40,7 @@ function editorCommandRuntime(declaration: CommandDeclaration, editorRef: any, s
|
||||
type: ScrollOptionTypes.Hash,
|
||||
value: args[0],
|
||||
});
|
||||
} else if (declaration.name === 'editorSetText') {
|
||||
} else if (declaration.name === 'editor.setText') {
|
||||
setFormNote((prev: FormNote) => {
|
||||
return { ...prev, body: args[0] };
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user