tinymce / tinymce-vue

Official TinyMCE Vue component
MIT License
2.06k stars 207 forks source link

How does vue3 use the refs method of vue2 #324

Closed sqdqiushao closed 2 years ago

sqdqiushao commented 2 years ago

tinymce-vue5.0.0: vue2 update vue3, The object obtained by refs has no method of vue2, like $refs.editor.editor.selection

exalate-issue-sync[bot] commented 2 years ago

Ref: INT-2939

jscasca commented 2 years ago

@sqdqiushao If you want to access the editor you can either create your own ref or you can just store the editor variable yourself. Finally you can access it via a window invocation. Here is a sample: https://codesandbox.io/s/tinymcevue-forked-zbmii?file=/src/App.vue