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

Rails 7 with Importmaps - TinyMCERails is not defined #306

Closed
phil-6 opened this issue Jul 19, 2023 · 5 comments
Closed

Rails 7 with Importmaps - TinyMCERails is not defined #306

phil-6 opened this issue Jul 19, 2023 · 5 comments

Comments

@phil-6
Copy link

phil-6 commented Jul 19, 2023

We have tried a LOT of options to try and get the tinymce-rails gem working with Rails 7 and Importmaps, almost every approach leads to Uncaught ReferenceError: TinyMCERails is not defined from wherever we call <%= tinymce %>

The approaches we have tried:

  1. As per the documentation: Install Gem, tinymce_assets helper in application head etc.
  2. Not using the asset helper, and adding import "tinymce" to our application.js
  3. Importing tinymce js from every conceivable location (including the root gem path) and then as above.
@sergey-arkhipov
Copy link

sergey-arkhipov commented Jul 19, 2023

Working app with tinyMCE on Rails 7 and importmap rails_tinyMCE

@phil-6
Copy link
Author

phil-6 commented Jul 19, 2023

Working app with tinyMCE on Rails 7 and importmap rails_tinyMCE

That was really helpful, that has helped scope the issue to Propshaft.

I'll close this as a duplicate of #303

@phil-6 phil-6 closed this as completed Jul 19, 2023
@latecia94
Copy link

Working app with tinyMCE on Rails 7 and importmap rails_tinyMCE

That was really helpful, that has helped scope the issue to Propshaft.

I'll close this as a duplicate of #303

Hey @phil-6 Did you get this working with Propshaft? What solution did you find?

@phil-6
Copy link
Author

phil-6 commented Feb 28, 2024

@latecia94 no, sadly not. We moved to use EditorJS instead as we felt it was a better all-round solution

@spohlenz
Copy link
Owner

Propshaft has been added in #315. If you are able to test it out and share your experience, that would be great.

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