-
-
Notifications
You must be signed in to change notification settings - Fork 310
How to use methods ? #33
New issue
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
Comments
which version did you use? |
1.0.0-beta-5 |
can you share the source code? |
`
} <QuillEditor onReady={(quill) => this.quillReady(quill)} contetType='html' /> Well, i want to add html inside the editor, through a button and also through drag and drop. But only setText () works, and the others return : is not a function... |
How to use methods in composition API: <template>
<QuillEditor ref="myEditor" />
</template>
<script>
import { QuillEditor } from '@vueup/vue-quill'
import { ref, onMounted } from 'vue'
export default {
components: {
QuillEditor,
},
setup() {
const myEditor= ref(null)
onMounted(()=> {
console.log(myEditor.value.getEditor())
})
return { myEditor }
}
};
</script> sorry for the delayed reply. |
Usage in option API: <template>
<QuillEditor ref="myEditor" />
</template>
<script>
import { QuillEditor } from '@vueup/vue-quill'
export default {
components: {
QuillEditor,
},
mounted() {
console.log(this.$refs.myEditor.getEditor())
}
};
</script> |
How to use methods Vuequill, like setHTML,getHTML ...
I try use setHTML on ready event but return setHTML is not a function..
The text was updated successfully, but these errors were encountered: