bootstrap-wysiwyg icon indicating copy to clipboard operation
bootstrap-wysiwyg copied to clipboard

Added Multiple Editors Instructions

Open spreadred opened this issue 8 years ago • 6 comments

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

spreadred avatar Mar 15 '17 19:03 spreadred

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.

andrews05 avatar May 01 '17 23:05 andrews05

@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.

spreadred avatar May 02 '17 11:05 spreadred

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

andrews05 avatar May 02 '17 21:05 andrews05

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

spreadred avatar May 02 '17 21:05 spreadred

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.

andrews05 avatar May 02 '17 21:05 andrews05

@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.

codewithtyler avatar Aug 20 '17 03:08 codewithtyler