You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Not sure if this should go here, but was wondering if I need to do anything extra to get Tinymce-rails working properly with Rails 7 + stimulus + importmaps
The editor is working fine except for stimulus.
Things i've done for setting up TinyMCE
Added the gem - gem 'tinymce-rails', '~> 6.3.1'
Added config/tinymce.yml with the default settings
Included TinyMCE assets using the tinymce_assets helper:
Problem: Whenever the description_html colum is edited I also want to to send an event to a stimulus javascript controller. Normally, I would call it like this: <%= form.text_area :description_html, value: product.description_html, class: "tinymce", rows: 40, cols: 120, data: {action: "input->submit#activate"} %>
But as an iframe is loaded when I use TinyMCE, i'm wondering how to do this.
Just wondering how to go forward with this. Thanks!
The text was updated successfully, but these errors were encountered:
Hey! Not sure if this should go here, but was wondering if I need to do anything extra to get Tinymce-rails working properly with Rails 7 + stimulus + importmaps
The editor is working fine except for stimulus.
Things i've done for setting up TinyMCE
gem 'tinymce-rails', '~> 6.3.1'
config/tinymce.yml
with the default settingsProblem: Whenever the description_html colum is edited I also want to to send an event to a stimulus javascript controller. Normally, I would call it like this:
<%= form.text_area :description_html, value: product.description_html, class: "tinymce", rows: 40, cols: 120, data: {action: "input->submit#activate"} %>
But as an iframe is loaded when I use TinyMCE, i'm wondering how to do this.
Just wondering how to go forward with this. Thanks!
The text was updated successfully, but these errors were encountered: