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 is broken #8547

Closed
snobo opened this issue May 31, 2022 · 1 comment
Closed

TinyMCE is broken #8547

snobo opened this issue May 31, 2022 · 1 comment

Comments

@snobo
Copy link

snobo commented May 31, 2022

After upgrading to version 1.6-git, TinyMCE is broken - only HTML is displayed, there are no buttons in the toolbar except for "HTML" (which doesn't switch to formatted text), and in the console the following error is output:

jquery.min.js?s=1653903095:36 Uncaught Error: editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead
at JE.addButton (tinymce.min.js?s=1624418460:9:383133)
at Object.a.config.setup_callback (ui.min.js?s=1609105339:45:319)
at JE.conf.setup (editor.js?s=1653903053:167:12)
at JE.execCallback (tinymce.min.js?s=1624418460:9:378795)
at new JE (tinymce.min.js?s=1624418460:9:384959)
at n (tinymce.min.js?s=1624418460:9:387585)
at Array. (tinymce.min.js?s=1624418460:9:389249)
at Ce (tinymce.min.js?s=1624418460:9:5625)
at Object.e (tinymce.min.js?s=1624418460:9:389108)
at Oi.executeHandlers (tinymce.min.js?s=1624418460:9:67058)

@alecpl
Copy link
Member

alecpl commented Jun 1, 2022

Strange.

ed.ui.registry.addButton('plaintext', {

An old version of ui.min.js is used somehow. Note that by default there are no min.js files.

@alecpl alecpl closed this as completed Jun 18, 2022
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