editor
Actions for managing editor app state.
Set the editor state as 'changed'
If you manipulated the note data and want the app to save it, do like so:
import { actions } from 'inkdrop'
inkdrop.store.dispatch(actions.editor.change(true))Actions
change(needsUpdatingDate)
Flag the editing note as changed, which tells the app that it needs to be saved.
| Argument | Description |
|---|---|
needsUpdatingDate |
Boolean, whether the note's updatedAt field needs to be updated or not. |
save()
Save the currently editing note.
Warning: Do not use this action in your plugin. Please invoke core:save-note command instead.
close()
Close the editing note. The changes in the note will be saved.
create()
Create new note and open it.
Warning: Do not use this action in your plugin. Please invoke core:new-note command instead.
changeViewMode(viewMode)
Change the editor view mode.
Warning: Do not use this action in your plugin. Please invoke view:toggle-preview command or view:toggle-side-by-side instead.
Can you help us improve these docs?
The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!