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.

TinyMCE loads non-minified plugins in non-debug mode and vice-versa

See original GitHub issue

When running Umbraco on a live environment (with debug="false"), I see the following plugin is loaded when TinyMCE/the RTE is initialized in the back-office: /umbraco/lib/tinymce//plugins/autoresize/plugin.js?umb__rnd=7de6bda4e77ab561e3b19a72a59cdb67. This loads the non-minified version of the plugin (5,58 kB).

When running in debug mode, the minified version is loaded (2,03 kB - 63% smaller size), so this logic seems mixed up: /umbraco/lib/tinymce//plugins/autoresize/plugin.min.js?umb__rnd=64f3d65f34f0673f8fc49a60d0d01780.

Umbraco version

I am seeing this issue on Umbraco 8.6.2.

Reproduction

Steps to reproduce

Switch the debug attribute in the web.config and check the loaded plugins in the developers tools network tab.

Expected result

Load the normal version in debug mode and minified ones in live/release builds.

Actual result

TinyMCE loads the minified version in debug mode and normal version on live/release builds.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Shazwazzacommented, Jul 29, 2020

We changed a lot about how tinymce loads assets in https://github.com/umbraco/Umbraco-CMS/pull/6147, i can’t recall all of the details but helped @warrenbuckley with the implementation. Just mentioning here as it might be related.

1reaction
nul800sebastiaancommented, Jul 28, 2020

I can reproduce with an RTE in the Grid on vLatest! Not when it’s not in the grid…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Most common plugin errors in TinyMCE and how to fix them
Ways to fix the most common plugin errors in TinyMCE and why those happen, including “TinyMCE failed to load plugin” error.
Read more >
TinyMCE not working: possible causes and fixes
There are a couple of possible reasons of TinyMCE not working - you can fix ... They have plugins that can save time...
Read more >
Troubleshoot
If a service does not appear to be working, this is generally caused by one of the following reasons. This guide will walk...
Read more >
Usage with module loaders
How to use TinyMCE in a project using a module bundler like Webpack or Browserify.
Read more >
Installing TinyMCE | Docs
Learn how to install TinyMCE via TinyMCE Cloud, package manager options, Self-hosted, jQuery and custom build options.
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