codex-team / codex-team/editor.js

[Bug] Save function not working - editor.save is not a function

Open
#1,136 4 comments 2 reactions 0 assignees View on GitHub
bug issue for docs
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Calling the .save() function does not work, with the console error saying
`Uncaught TypeError: editor.save is not a function`

I have tried several ways to to initialise editor.js, even with the examples from the docs (https://editorjs.io/saving-data), it still displays the error.

```
const editor = new EditorJS();

editor.save().then((outputData) => {
console.log('Article data: ', outputData)
}).catch((error) => {
console.log('Saving failed: ', error)
});
```

The only other JS library being used is jQuery.

Any thoughts on how I can get this working, or help debug?
Thanks

---

Editor.js version: 2.17.0

Plugins you use with their versions:
Header
Quote
Delimiter

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.