Allow use of trix directly with trix_editor_tag by injecting into ActionView::Base#44
Allow use of trix directly with trix_editor_tag by injecting into ActionView::Base#44zachfeldman wants to merge 1 commit intomaclover7:masterfrom
Conversation
|
Hi @zachfeldman! Two quick things about this PR--
|
|
@maclover7 sure I'd be glad to help.
My main thesis is that I have to include trix_editor_tag in FormTagHelper so I can call it directly in my code. I've been able to resolve it as defined by defining it directly in the module like so: However, from here I get stuck in a loop of, "wait, this is already defined above" and trying to include it there instead of defining it ( Frankly I'm pretty stumped here, would appreciate any guidance @maclover7 as to what you consider a proper way to inject this into activerecord. I'm glad to do number 2 once I can take care of number 1! Appreciate any insights you might have. |
This feels a bit icky to me and like I'm not doing it the true "rails way", but it does work on my project. Any suggestions welcome!