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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Ben Walsh-2
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

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

Ariel Juodziukynas
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 (<[hidden email]>) 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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcDTJMhruScGfxezisyjywV3V1Oe5VhQo89F4t4Er2Ghhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Ben Walsh-2
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 (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nAKhF26OCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ben....@...>) 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nAKhF26OCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nAKhF26OCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/db62688d-2bbd-4be8-8697-fd0ab3df127a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/db62688d-2bbd-4be8-8697-fd0ab3df127a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/db62688d-2bbd-4be8-8697-fd0ab3df127a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/db62688d-2bbd-4be8-8697-fd0ab3df127a%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/480f9bcd-40ae-496f-baf3-fbc9133b5ace%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.