Skip to content
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

Is there a way to disable the editor? #893

Closed
pragatikerur opened this issue May 7, 2020 · 3 comments
Closed

Is there a way to disable the editor? #893

pragatikerur opened this issue May 7, 2020 · 3 comments

Comments

@pragatikerur
Copy link

Hi, I want to disable the editor once the user is done entering the input, how can I achieve this? I tried with setting contentEditable to false it doesn't seem to work.
Thanks

@KillerCodeMonkey
Copy link
Owner

KillerCodeMonkey commented May 7, 2020

just set the input readOnly to true. it is also mentioned in the readme and you can see an example in my demo repo

@iKrishnaSahu
Copy link

@KillerCodeMonkey
If we set readOnly to true, the toolbar buttons are still enabled although the button clicks does not do anything.
Is this expected?

@KillerCodeMonkey
Copy link
Owner

KillerCodeMonkey commented Oct 17, 2023

It is that what the quill editor does if you disable it, guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants