API shorthands (#627)

* Api shorthands

closes #612

* Remove docs about events

* Update embed submodule

* Update example
This commit is contained in:
George Berezhnoy 2019-02-28 19:01:41 +03:00 committed by GitHub
commit 75dbc91f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 84 additions and 67 deletions

View file

@ -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"));
});
});