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

Does not seem to work when multiple editors on same page #75

Open
schaffer1969 opened this issue Mar 22, 2019 · 3 comments
Open

Does not seem to work when multiple editors on same page #75

schaffer1969 opened this issue Mar 22, 2019 · 3 comments

Comments

@schaffer1969
Copy link

schaffer1969 commented Mar 22, 2019

Hi,

I'm having issues getting two instances working on the same page.
The first instance displays the dropdown but the second does not.

I saw the previous issue from 2015 and can't get that working even if I update the JS and css file locations.
#26

I've included my code below.
I'd appreciate your thoughts on this.

`

<style> </style> <script src="./tinymce/js/tinymce/tinymce.min.js"></script> <script src="./js/jquery/jquery-3.3.1.js"></script> <script> tinymce.init({ selector: 'textarea#section2', height: 500, menubar: false, statusbar: false, plugins: [ 'mention' ], mentions: { source: [ { name: 'name 1'}, { name: 'name 2'}, { name: 'name 3'}, { name: 'name 4'} ] } }); tinymce.init({ selector: 'textarea#section3', height: 500, menubar: false, statusbar: false, plugins: [ 'mention' ], mentions: { source: [ { name: 'name 1'}, { name: 'name 2'}, { name: 'name 3'}, { name: 'name 4'} ] } }); </script> <textarea id="section2" > </textarea> <textarea id="section3" > </textarea>

`
Thanks

Mark

@StevenDevooght
Copy link
Owner

Hi,

Can you create a fiddle reproducing the problem?

@StevenDevooght
Copy link
Owner

The updated fiddle seems to work.

@schaffer1969
Copy link
Author

Thanks Steven.
There seems to be a compatibility issue with TinyMCE 5.0+. Works with 4.x but not 5.
See example fiddle

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