question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

modern/theme.js IIFE broken with 4.7.5?

See original GitHub issue

Do 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:closed
  • Created 6 years ago
  • Comments:25

github_iconTop GitHub Comments

4reactions
asaarnakcommented, Feb 21, 2018

The error dissapeared on 4.7.7.

1reaction
fyrkantcommented, Jan 30, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found