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.

Stop relying on CDN for TinyMCE

See original GitHub issue

The CDN version of TinyMCE has been broken for the last week or so - see https://github.com/tinymce/tinymce/issues/4171 . This has broken the dashboard for any site that uses the default dashboard setup - and with our current setup there is no way to fix this other than to monkey-patch dashboard/layout.html and use a different CDN.

I think this highlights the risks of using a CDN where we cannot control the minor version of the package (there is no way to specify minor version for that CDN). The maintainers of TinyMCE offer a different CDN (cloud.tinymce.com) as an alternative, but this one requires you to sign up for an API key.

I think it would be better for Oscar to provide a local copy of TinyMCE to avoid such issues in future.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
solarissmokecommented, Jan 29, 2018

@fyrkant yep, that’s the plan. Thank you for fixing the issue upstream as well though,

0reactions
fyrkantcommented, Jan 29, 2018

You should be able to install TinyMCE with npm and copy it over with gulp like you seem to do with bootstrap! Then you can lock the version in the package.json.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Announcement: TinyMCE CDN Reminder
Hence, we want to remind you access to TinyMCE 4 via our legacy CDN (https://cdn.tinymce.com/) is being removed on February 25, 2021. If...
Read more >
global is not defined (v4.7.5) · Issue #4171 · tinymce ...
on v4.7.5, using jquery breaks with an error: "global is not defined". the plugin include this line "...=global || window" which is invalid....
Read more >
How to disable TinyMce cdn for one textarea?
The editor_deselector: configuration option was depreciated starting with TinyMCE 4.x. Tiny's selector option utilizes CSS selector syntax ...
Read more >
How to setup TinyMCE in your Rails app using Webpack
If you previously had tinyMCE implemented via CDN, you'd like to get rid of some stuff, to start clean. Remove the script link...
Read more >
I am amazed how Drupal add TinyMCE as a module!
TinyMCE adds line breaks unnecessarily, how do I stop that? ... tiny configs and not have to rely on whether the plugin author...
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