-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editor: Deprecation warning in console, missing functionality with quill v2.0.0 #5381
Comments
Since the editor uses a third-party library, it is not auto-imported. Can be used like this:
I would like to point out that we currently only provide theme support to the Editor. Thank you! |
Well I was just pointing out the fact that version 2.0.0-rc.2 is resolving a deprecation problem but also cause compatibility issues with the Primevue Editor :) |
@luke-z do you have some workaround for displaying the initial value? |
@GreenBattery sorry, I only updated the package to v2 to see if the deprecation warning disappears.. When I saw that it isn't really compatible with Primevue at the moment, I reverted to 1.3.7 and posted this issue. So I haven't spent any time trying to find a workaround |
Describe the bug
Using the Editor with quill version 1.3.7 results in a deprecation warning in the console (can also be observed on https://primevue.org/editor).
This deprecation warning is a known issue (vueup/vue-quill#409, slab/quill#3806) and should be resolved with quill version 2.
quill v2 is currently in release candidate 2, however it seems like the Editor is not fully compatible with this version, as using a pre-initialized v-model does not work with the Editor anymore.
I haven't tested everything, but it seems like the rest works as intended. The only thing not working smoothly is displaying the initial value.
on a side note: It seems like the Editor isn't auto imported with the nuxt-primevue module. I have to import it in the script section using
import Editor from 'primevue/editor'
Reproducer
https://stackblitz.com/edit/primevue-nuxt-issue-template-kqkipp?file=app.vue
PrimeVue version
3.49.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
Brave
Steps to reproduce the behavior
Expected behavior
The Editor should display and use the original v-model value as can be seen on the example page https://primevue.org/editor/#template
The text was updated successfully, but these errors were encountered: