# editingNote

Source: https://developers.inkdrop.app/actions/editing-note

Actions for changing the [editingNote](https://developers.inkdrop.app/states/editing-note) app state, including updating note details and managing note editing.

---

## Update `update(data)`

Update the editing note data.

- **data** (Partial\<Note>, required)

  A [Note](https://developers.inkdrop.app/data-access/notes) data object to update. Every field of the Note is optional. You can pass pairs of fields you would like to update.

To change the title of the editing note:

```js
import { actions } from 'inkdrop'
env.store.dispatch(actions.editingNote.update({ title: 'NEW TITLE' }))
env.store.dispatch(actions.editor.change(true))
```

---

## Open `open(note)`

Load a note data to the editor.

> **Warning:**
>
> Do not use this action in your plugin. Please use [`core:open-note` command](https://developers.inkdrop.app/guides/list-of-commands#core-open-note) if you would like to open a note in the editor.

- **note** (object, required)

  A [Note](https://developers.inkdrop.app/data-access/notes) data object to load.

---

## Close `close()`

Close the editing note.

> **Warning:**
>
> Use [`editor.close` action](https://developers.inkdrop.app/actions/editor#close) instead in your plugin.

---
