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

Cannot dynamically update placeholder options #7

Open
mrowles opened this issue Jul 6, 2018 · 4 comments
Open

Cannot dynamically update placeholder options #7

mrowles opened this issue Jul 6, 2018 · 4 comments

Comments

@mrowles
Copy link
Contributor

mrowles commented Jul 6, 2018

I've tried to emulate this possible solution here in order to dynamically update placeholder options, but the click functionality seems to disappear when you add a new one. I think it's because these are registered when the module is created. Would be good to get this working dynamically.

@jspaine
Copy link
Owner

jspaine commented Jul 8, 2018

What are you trying to do, add/remove placeholders?

@mrowles
Copy link
Contributor Author

mrowles commented Jul 8, 2018

Yeah at a basic level. I understand I could hold off on loading the Quill instance until I have them loaded, say, from a HTTP request, but I also have the use case of having users being able to add them in real-time. Quill has this annoying limitation where we cannot re-instantiate the editor or even the toolbar. destroy() was removed in a previous version.

@jspaine
Copy link
Owner

jspaine commented Jul 8, 2018

Ok I'll see if there's anything I can do in here. Think you might just have to throw away the editor, create a new one and copy the state though.

@Dhavalc2012
Copy link

@mrowles Have you tried to change the key of the component? It will refresh the placeholders which worked for my usecase.

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