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

Feature request #49

Closed
mdevDE opened this issue May 8, 2018 · 2 comments
Closed

Feature request #49

mdevDE opened this issue May 8, 2018 · 2 comments

Comments

@mdevDE
Copy link

mdevDE commented May 8, 2018

Hi Valeriy,

I have multiple (more than 30 divs/textareas) which need inline mode editor support. Currently this means I have 30 Jodit instances. The number of 30 can be increased through user interaction and I don't know how many the user will insert at runtime. Therefore, to reduce overhead and complexity, it would be really good if I only need 1 inline mode instance for all divs/textareas. This would mean that I need a function with which I can register/unregister all divs/textareas (at initialization or at runtime dynamically). Or a function where I can register a className at initialization and all dynamically added divs/textareas will be supported as default without further interaction.

@xdan
Copy link
Owner

xdan commented May 11, 2018

Hi, you can create instances dynamically. Something like this https://xdan.github.io/jodit/examples/oneinstance.html

@mdevDE
Copy link
Author

mdevDE commented May 13, 2018

Thanks for the example!!

@mdevDE mdevDE closed this as completed May 13, 2018
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

2 participants