steveathon / bootstrap-wysiwyg

Tiny bootstrap-compatible WYSIWYG rich text editor
MIT License
661 stars 1.71k forks source link

Added Multiple Editors Instructions #118

Open spreadred opened 7 years ago

spreadred commented 7 years ago

Added instructions on how to properly initialize multiple editors on the same page. Proper initialization and usage resolves #117 #110 #31

andrews05 commented 7 years ago

Nice instructions, although you don't actually need to use data-role - it just needs to be a unique selector. For instance, you can use id selectors like #toolbar1.

spreadred commented 7 years ago

@andrews05 So set the toolbar ids like: id="toolbar1" and then set toolbarSelectors like this: toolbarSelector: "#toolbar1"?

This didn't work for me, I must be misunderstanding.

andrews05 commented 7 years ago

No that's right, it works for me just like that. Not sure why it wouldn't work for you...

spreadred commented 7 years ago

On the 2.0dev branch of the code? or the older code base?

andrews05 commented 7 years ago

I'm on the older codebase but the 2.0 branch appears to work the same, just from looking at the code. There's no reference to 'data-role' besides the default value for toolbarSelector.

codewithtyler commented 6 years ago

@kaptainkommie My PR that removes instructions like these from the README was recently merged in. Can you update the Getting Started wiki article instead? We should start pointing people to this wiki article.