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.

Double scope declaration breaks tinymce.js

See original GitHub issue

Do you want to request a feature or report a bug? Bug

What is the current behavior? Since version 4.7.5 tinymce.js starts with a doubled scope declaration, like this:

// 4.7.5 (2018-01-22)
(function () {
(function () {
// source code ...
}());
})()

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. Just load tinymce@latest via yarn or npm and have a look at the node_modules/tinymce/tinymce.js

What is the expected behavior? Have only one scope, or exporting everything according to 4.7.4

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE? It worked with 4.7.4 and before and currently effects only 4.7.5. I ran into this one, due to I am loading tinymce via webpack and all my test fail trying to access anything from TinyMCE after loading the bundle.js.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
ttrevorrcommented, Jul 25, 2018

This is still broken with the angular cli.

5reactions
tuurbocommented, Jan 30, 2019

Still broken as of 4.9.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Template plugin | Docs
This example shows how the template plugin can be used to insert custom templates with pre-defined markup and values. TinyMCE HTML JS Edit...
Read more >
TinyMce breaking TailwindCss animation when loaded ...
I'm trying to place a TinyMce editor inside of a slide over component and that works fine. The issue is the entry animation....
Read more >
Customize TinyMCE attributes
Change TinyMCE toolbars and the default height of HTML fields to customize your journal ... Configure TinyMCE to allow JavaScript in URLs.
Read more >
TinyMCE | Drupal.org
The TinyMCE module adds a what-you-see-is-what-you-get (WYSIWYG) html editor to normal ... and configuration of Spellcheck and Teaser Break TinyMCE plugins.
Read more >
Options
Default: true. Plugin: char_counter.min.js ... Plugin: code_beautifier.min.js ... Allows the usage of HTML , HEAD , BODY tags and DOCTYPE declaration.
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