V
V
Vladimir Vlasyuk2019-03-21 18:07:00
React
Vladimir Vlasyuk, 2019-03-21 18:07:00

How to properly add a module to Quill?

I use the content editor Quill, namely its version for react.
To be honest, I'm interested in 2 modules,
"quill-image-drop-module" and "quill-image-resize-module".
I do everything according to the instructions, but it gives an error, like the module is not registered, because it is not imported.
Who faced? How did they do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Vlasyuk, 2019-03-27
@Skajinet

Undertook to use Jodit. Something more or less understandable, there were no other words. Well, you can’t just take and make a normal editor, which will understand how to work, so to speak, out of the box.
You always have to dance with a tambourine, in Slate everything is somehow very damp, it seems to work, but it doesn’t seem to work, I couldn’t figure out how to connect it. Quill generally works for React norms, but adding a module is unrealistic. DraftJS is another headache, you have to write almost every button yourself from scratch, and then connect it somehow, again, it’s not known how everything is also somehow modular.
In short, the choice fell on Jodit, while this is the best option.

A
Andrew, 2019-03-21
@deepblack

I don’t know how you connect, but without React it works fine

var quill = new Quill('#editor', {
    theme: 'snow',
     modules: {
        imageDrop: true,
        imageResize: {
          displaySize: true
        }
    }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question