Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins not working #281

Open
ViciousMagician opened this issue Nov 23, 2021 · 6 comments
Open

Plugins not working #281

ViciousMagician opened this issue Nov 23, 2021 · 6 comments

Comments

@ViciousMagician
Copy link

Found at least Code and Preview are causing issues when deployed to Heroku using latest gem. We did just attempt to update from v4.8.4

When loading either plugin i get this from the browser console.

theme.js?v=5.10.2:1

   Uncaught TypeError: Cannot read properties of undefined (reading 'dom')
at theme.js?v=5.10.2:1:4470
at ze (theme.js?v=5.10.2:1:19745)
at theme.js?v=5.10.2:3:18136
at ve (theme.js?v=5.10.2:1:17897)
at theme.js?v=5.10.2:3:18108
at Object.n (theme.js?v=5.10.2:7:31464)
at Object.find (theme.js?v=5.10.2:3:18084)
at Object.find (theme.js?v=5.10.2:3:18286)
at u (theme.js?v=5.10.2:3:18905)
at As (theme.js?v=5.10.2:3:17022)

Even tried deploying with a minimal yml

toolbar:

  • code
    plugins:
  • code
@istana
Copy link

istana commented Nov 24, 2021

I bumped into the same exception, changing uglifier configuration helped (in config/environment/production.rb):

config.assets.js_compressor = :uglifier

with

config.assets.js_compressor = Uglifier.new(harmony: true)

@ViciousMagician
Copy link
Author

I bumped into the same exception, changing uglifier configuration helped (in config/environment/production.rb):

config.assets.js_compressor = :uglifier

with

config.assets.js_compressor = Uglifier.new(harmony: true)

Thanks I have tried this with no improvement. Updated both staging and production.rb

@istana
Copy link

istana commented Nov 27, 2021

I don't have any other pointers. But I can share versions which work - rails (6.1.4.1), sprockets-rails (3.2.2), sprockets (4.0.2), uglifier (4.2.0) and config (sorry, coffeescript)

  tinymceConfig =
    selector: 'textarea.tinyMCE',
    plugins: 'advlist autolink lists link image charmap print preview anchor searchreplace visualblocks code fullscreen insertdatetime media paste code help wordcount table',
    toolbar: "undo redo | formatselect | bold italic | alignleft aligncenter alignright alignjustify | bullist outdent indent | forecolor backcolor table",
    relative_urls: false,
    remove_script_host : false

@ViciousMagician
Copy link
Author

I wasn't able to work it out with this gem but i was able to switch over to using tinymce cloud api version and all works fine

@krishnaeverestengineering
Copy link

krishnaeverestengineering commented Dec 6, 2021

Me also facing plugin issues. Core plugins are throwing errors (lists, paste). In Development Env everything working fine but Staging Env is not.

@gregawoods
Copy link

gregawoods commented Feb 7, 2022

I can second this. Was having the same error for both pasting and the show source button. I have a couple apps that use this gem and I can say I did not have this problem in version 5.8.1, but I do in 5.10.2.

TypeError: undefined is not an object (evaluating 'e.schema')

Setting my js_processor to Uglifier.new(harmony: true) and recompiling resolved it for me. You can also try terser as a more current alternative to uglifier.

jkotchoff added a commit to jkotchoff/melbourneunibasketball.org.au that referenced this issue Mar 16, 2022
jkotchoff added a commit to jkotchoff/melbourneunibasketball.org.au that referenced this issue Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants