mirror of
https://github.com/codex-team/editor.js
synced 2026-03-15 15:15:47 +01:00
API shorthands (#627)
* Api shorthands closes #612 * Remove docs about events * Update embed submodule * Update example
This commit is contained in:
parent
69a5c21bb6
commit
75dbc91f53
9 changed files with 84 additions and 67 deletions
|
|
@ -21,7 +21,7 @@
|
|||
<div id="editorjs"></div>
|
||||
|
||||
<div class="ce-example__button" id="saveButton">
|
||||
editor.saver.save()
|
||||
editor.save()
|
||||
</div>
|
||||
</div>
|
||||
<div class="ce-example__output">
|
||||
|
|
@ -263,7 +263,7 @@
|
|||
* Saving example
|
||||
*/
|
||||
saveButton.addEventListener('click', function () {
|
||||
editor.saver.save().then((savedData) => {
|
||||
editor.save().then((savedData) => {
|
||||
cPreview.show(savedData, document.getElementById("output"));
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue