ActionText always wraps content in <div class="trix-content">

301 views
Skip to first unread message

Ben Walsh

unread,
Jun 27, 2019, 5:54:48 AM6/27/19
to Ruby on Rails: Talk
This behaviour is hard-coded in app/views/action_text/content/_layout.html.erb

I think it should be possible to customize the wrapper element -- the current behaviour breaks backwards compatibility for us when migrating from TinyMCE to ActionText.



Ariel Juodziukynas

unread,
Jun 27, 2019, 9:08:46 AM6/27/19
to rubyonra...@googlegroups.com
Just define your own partial in your app's app/view folder and it will be used instead of that default partial.

El jue., 27 jun. 2019 a las 6:54, Ben Walsh (<ben....@bonkers.ie>) escribió:
This behaviour is hard-coded in app/views/action_text/content/_layout.html.erb

I think it should be possible to customize the wrapper element -- the current behaviour breaks backwards compatibility for us when migrating from TinyMCE to ActionText.



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/db62688d-2bbd-4be8-8697-fd0ab3df127a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ben Walsh

unread,
Jun 27, 2019, 9:48:14 AM6/27/19
to Ruby on Rails: Talk
Of course. Thank you.


On Thursday, 27 June 2019 14:08:46 UTC+1, Ariel Juodziukynas wrote:
Just define your own partial in your app's app/view folder and it will be used instead of that default partial.

El jue., 27 jun. 2019 a las 6:54, Ben Walsh (<ben....@bonkers.ie>) escribió:
This behaviour is hard-coded in app/views/action_text/content/_layout.html.erb

I think it should be possible to customize the wrapper element -- the current behaviour breaks backwards compatibility for us when migrating from TinyMCE to ActionText.



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages