Since some of my views are rendered in Javascript, specifically with React, 
I'd like a way to attach the Trix editor and ActionText capabilities to a 
dom node directly.

The `rich_text_area_tag` doesn't look very complicated but uses a couple of 
things that I don't think are available through JS:

- `ActionText::TagHelper.id`
- `main_app.rails_direct_uploads_url`
- `main_app.rails_service_blob_url(":signed_id", ":filename")`


https://github.com/rails/rails/blob/df8ee09ce71338cdf9816225df1bdebc707f3560/actiontext/app/helpers/action_text/tag_helper.rb

Would this be something the npm package could include? And is there a way 
to get `rails_direct_uploads_url` and `rails_service_blob_url` in the npm 
package?

Thanks,
Tom

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to