Using the CKEditor instance, I am looking to utilize the following method: on( 'paste', function( evt )).
The Vue CKEditor documentation mentions:
If you require access to the editor object, you can use the editor property of the component’s instance:
component.instance.getData();
I am struggling to understand how this relates to my current template because:
console.log(this.$refs.editor)
is defined
is undefinedconsole.log(this.$refs.editor.instance)
is not a functionconsole.log(this.$refs.editor.on())
This is my vue file:
<template>
<div class="container">
<ckeditor ref="editor" :editor-url="editorUrl" v-model="editorData" :config="editorConfig"></ckeditor>
</div>
</template>