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

TinyMCE gets initialized twice #407

Closed
frapell opened this issue Mar 27, 2018 · 2 comments · Fixed by #409
Closed

TinyMCE gets initialized twice #407

frapell opened this issue Mar 27, 2018 · 2 comments · Fixed by #409

Comments

@frapell
Copy link
Sponsor Member

frapell commented Mar 27, 2018

@datakurre Do you remember why this was needed here?

With latest TinyMCE (4.7.6) I'm observing that the toolbar won't open and I would get this error tinymce/tinymce#2655

For what I understand, TinyMCE loads asynchronously (was this not the case with previous versions?) and because of that line 793, a new pattern is created, but without properly cleaning up the previous initialization... even though there is code that should do that in

$content.data("pattern-tinymce").destroy();
(I suspect because of tinymce being created async, however I don't quite understand why it was working before...)

Commenting out that line 793 solves the issue for me, and clicking on any of the richtext tiles would now show up the toolbar just fine...

Reading those "HACK HACK HACK" on top makes me think that this might have been something for old TinyMCE that is no longer needed, but I'm not sure...

@frapell frapell closed this as completed Mar 27, 2018
@datakurre
Copy link
Member

datakurre commented Mar 27, 2018 via email

@frapell
Copy link
Sponsor Member Author

frapell commented Mar 27, 2018

I haven't tested it yet, will do so shortly and if so, will submit a pull request with that stripped away

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants