Open rpatil opened 2 years ago
I'm having same problem, but only in production. Running it locally in development environment works like a charm. So, it looks like after precompiling assets something goes wrong.
For those who have this problem in production, I recommend you to change in production.rb:
config.assets.js_compressor = :uglifier
To:
config.assets.js_compressor = Uglifier.new(harmony: true)
Also, delete cache and everything. Try it in different browsers. (You can use the gem Terser too as a JavaScript compressor).
I hope this can be helpful, I've spent days trying to understand the problem.
After clicking on the source-code button of the editor, the complete text vanishes.
Gem details:
Step 1:
Step 2: