Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action Text attachment button has no icon #3251

Closed
exvayn opened this issue Feb 13, 2020 · 6 comments
Closed

Action Text attachment button has no icon #3251

exvayn opened this issue Feb 13, 2020 · 6 comments
Milestone

Comments

@exvayn
Copy link

exvayn commented Feb 13, 2020

Issue: Action Text attachment button has no icon

Because the old version of library is used (1.1.1):
https://github.com/sferik/rails_admin/blob/v2.0.1/lib/rails_admin/config/fields/types/action_text.rb

please update version of trix library

@exvayn
Copy link
Author

exvayn commented Feb 13, 2020

I fixed this by loading own css and js:
js_location { bindings[:view].asset_pack_path 'actiontext.js' }
css_location { bindings[:view].asset_path 'application.scss' }

@nicholalexander
Copy link

Yes, this worked, thank you! Maybe we could add this to the wiki? https://github.com/sferik/rails_admin/wiki/ActionText - I wasn't sure if I should just edit the wiki or no.

@vnguyen13
Copy link

vnguyen13 commented Oct 19, 2020

@exvayn @nicholalexander How did you incorporate action text to work with rails_admin?

@mshibuya mshibuya added this to the 3.0.0 milestone Aug 14, 2021
@tosbourn
Copy link
Contributor

tosbourn commented Sep 6, 2021

How did you incorporate action text to work with rails_admin?

@vnguyen13 there is a wiki page explaining how to get ActionText working

@mshibuya mshibuya modified the milestones: 3.0.0, 3.1.0 Jan 22, 2022
@xmarco
Copy link

xmarco commented Jan 26, 2022

Since Rails 7 removed webpacker, I add the following lines but get no luck.

RailsAdmin.config do |config|
  config.model 'Article' do
    field :content do
      css_location { bindings[:view].asset_path 'actiontext.css' }
      js_location { bindings[:view].asset_path 'actiontext.js' }
    end
  end
end

@tosbourn
Copy link
Contributor

tosbourn commented Feb 24, 2022

I'm having the exact same issue with Rails 7 at the moment.

Now the code @xmarco posted will return the raw contents of actiontext.js and not the compiled contents.

Are there any known work-arounds to point ActionText towards your own version when you don't use webacker?

Related to #3449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants