We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I press the save button it shows me the error message: TypeError: _this.$refs.editor.save is not a function... My vue view code:
TypeError: _this.$refs.editor.save is not a function
<template> <div class="home"> <editor header list code ref="editor" autofocus holder-id="codex-editor" save-button-id="save-button" @save="onSave" :config="config" /> <button @click="save">Save!</button> </div> </template> <style lang="scss" scoped></style> <script> export default { name: "CreatePost", data() { return { config: { image: { field: "image", types: "image/*", }, }, }; }, methods: { onSave(response) { console.log("response: ", response); }, async save() { const res = await this.$refs.editor.save(); console.log("res: ", res); }, }, }; </script>
The text was updated successfully, but these errors were encountered:
I found a workaround https://github.com/ChangJoo-Park/vue-editor-js/blob/master/demo/Demo.vue#L101 args from onChange has saver, so saver.save() gives me the content of editor :)
Sorry, something went wrong.
Is there any new solution out there? I got two different property saver and save but that's not working also.
Use this :
this.$refs.editor._data.state.editor.save()
also the useful render() is on this path
render()
No branches or pull requests
When I press the save button it shows me the error message:
TypeError: _this.$refs.editor.save is not a function
... My vue view code:The text was updated successfully, but these errors were encountered: