-
Notifications
You must be signed in to change notification settings - Fork 10
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
Please how do I set up the package with VueQuill #14
Comments
I want to refer to this issue just now. This my code:
I hope this is helpful for you : ) @Nelwhix |
@dawnlion0305 I will try it out, thank you man👍🏾 |
@dawnlion0305 Please what do these 2 lines do?. I am working on a purely JS project so I want to know how I can substitute them. const quill = ref<InstanceType<typeof Quill>>();
const setQuill = (q: Quill) => {
quill.value = q;
} |
Let it alone if you code on Js project. I wanna get the instance so I can use the API of Quill in the following codes.
It's similar to the above on your JS project:
I hope it's helpful for you to understand : ) @Nelwhix |
It is working perfectly now, thank you so much!! |
I was refered to this demo.
---- Replied Message ----
| From | Nelson ***@***.***> |
| Date | 9/24/2022 06:52 |
| To | ***@***.***> |
| Cc | ***@***.***> ,
***@***.***> |
| Subject | Re: [xeger/quill-image] Please how do I set up the package with VueQuill (Issue #14) |
It is working perfectly now, thank you so much!!. How did you get the idea?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sorry I haven't had time to chime in here; been busy with work. Thank you @dawnlion0305 for the boost! |
Hi I found an alternative way of using quill-image with VueQuill that to me feels a little easier to use. I'm also using quill-image-uploader in this example and everything seems to be working as expected. The main thing is that you need to explicitly define formats otherwise it won't work and I'm not sure why.
Vue Component |
It's a standard Quill behavior (and a best practice) to explicitly define all of the formats you want your editor to support. There is a selection of default formats, but I'm reopening this issue so it's easier for people to find; thank you for providing a working example @tedik123. At some point I will try to incorporate your info into the README, and/or craete separate readmes for react vs. vue vs. pure-JS Quill. |
No problem! Thank you for the explanation and your work on this project! |
@xeger Why do we have this warning in console.log? |
That warning indicates that
In contrast, every time an instance of Quill is constructed, there are I don't know anything about Vue but my guess is that your calls to |
Should I call this on In the component itself only, when refreshing, the problem exist. On fresh restart, the error is not displaying. |
Try calling For an example, see the registration code in the sandbox. Notice how it is called exactly once, at page load. That is what you want to achieve. Calling |
This is my config but I am getting this error when I select the image to resize: index.mjs:1384 Uncaught TypeError: Cannot read properties of null (reading 'includes')
at index.mjs:1384:42
at Array.some ()
at index.mjs:1382:67
at Array.filter ()
at ImageActions2.createActions (index.mjs:1381:39)
at ImageActions2.show (index.mjs:1348:12)
at HTMLDivElement. (index.mjs:870:23)
The text was updated successfully, but these errors were encountered: