How to use the react-quill/src/.Quill function in react-quill

To help you get started, we’ve selected a few react-quill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github crablar / podsheets / frontend / src / components / admin / forms / PodcastAboutForm.tsx View on Github external
image: () => {
                    const range = this.quill.getSelection();
                    const value = prompt("What is the image URL");
                    if (value) {
                        this.quill.insertEmbed(range.index, "image", value, ReactQuill.Quill.sources.USER);
                    }
                },
            },
github crablar / podsheets / frontend / src / components / admin / forms / EpisodeForm.tsx View on Github external
protected onImagePick(url: string) {
        const range = this.quill.getSelection() || { index: 0 };
        const value = url;
        if (value) {
            this.quill.insertEmbed(range.index, "image", value, ReactQuill.Quill.sources.USER);
            this.setState({ isUploadingImage: false });
        }
    }

react-quill

The Quill rich-text editor as a React component.

MIT
Latest version published 2 years ago

Package Health Score

72 / 100
Full package analysis