Skip to content

Conversation

@spreadred
Copy link

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

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

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
Copy link
Author

spreadred commented May 2, 2017

@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
Copy link

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

@spreadred
Copy link
Author

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

@andrews05
Copy link

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
Copy link

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

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

Successfully merging this pull request may close these issues.

Multiple Editors Bad Cursor Placement

3 participants