modern/theme.js IIFE broken with 4.7.5?
See original GitHub issueDo you want to request a feature or report a bug? Bug What is the current behavior? There seems to be an issue with theme.js with the latest release 4.7.5 with the IIFE. I get this error when trying to include theme.js
theme.js:2 Uncaught TypeError: (intermediate value)(...) is not a function
at theme.js:2
Where theme.js is located here: node_modules/tinymce/themes/modern/theme.js
The error does not appear with version 4.7.4.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tinymce.com or similar.
What is the expected behavior?
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE? 4.7.5
Issue Analytics
- State:
- Created 6 years ago
- Comments:25
Top Results From Across the Web
43969 (Custom themes will not work in TinyMCE 4.7)
it looks quite broken because the format of the theme.js file (generally the js/tinymce/themes/modern/theme.js) is vastly different format pre-4.7.
Read more >IIFE - MDN Web Docs Glossary: Definitions of Web-related terms
An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined. The name IIFE is promoted...
Read more >tinymce | Yarn - Package Manager
Fixed a bug where TinyMCE didn't work with module loaders like webpack. 4.7.5 - 2018-01-22. Fixed. Fixed bug with the Codesample Plugin where...
Read more >Changelog | Docs - TinyMCE
Split toolbar buttons incorrectly had nested tabindex="-1" attributes. ... Changed mobile phones to use the silver theme by default.
Read more >iife - What is the (function() { } )() construct in JavaScript?
This is an Immediately Invoked Function Expression in Javascript: To understand IIFE in JS, lets break it down: Expression: Something that returns a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The error dissapeared on 4.7.7.
Thank you @AndreMarthaler I found where I need to fix it and it will be fixed in the next release but until then you can use the minified files -
tinymce.min.js
,plugin.min.js
,theme.min.js
- and that should work.