Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Customizing toolbar #38

Open
killthekitten opened this issue Jun 30, 2013 · 8 comments
Open

Customizing toolbar #38

killthekitten opened this issue Jun 30, 2013 · 8 comments

Comments

@killthekitten
Copy link

Is there any way to override an existing toolbar template or to use config for customization?

@codingluke
Copy link

+1, Im trying the same. Seems that you can not just add the file "/app/admin/assets/javascripts/active_admin/editor/templates/toolbar.jst.ejs" and it will override the gems file. A configuration for this would be great :)

@killthekitten
Copy link
Author

I thought that it is a ruby on rails feature, but I was wrong. In fact, Spree has the same behaviors - it is possible to override templates in spree.

@codingluke
Copy link

I Think ist because the js witch requires the template is in the gem, so the gems assets have privileges. But Im investigating. It should be relatively easy to configure the template name, to set it to a own one. They do it already for the parser options. Hope this is working.

@codingluke
Copy link

This is our file, here we have to add the possibility to configure the template name for the toolbar template :) I will fork it and try it... https://github.com/ejholmes/active_admin_editor/blob/master/app/assets/javascripts/active_admin/editor/config.js.erb

@codingluke
Copy link

Ok i got it. look at the Pull Request #39.
When you want to have the feature right now. You can take my fork. But I can not guarantee any stability.

gem 'active_admin_editor', git: "[email protected]:edenspiekermann/active_admin_editor.git"

@killthekitten
Copy link
Author

Looks good enough, thank you for your work!

Hope @ejholmes will take a look.

@corbanb
Copy link

corbanb commented Sep 16, 2013

@codingluke and @killthekitten did this get merged in? I wasn't sure looking through.

@AlainPilon
Copy link

+1

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

No branches or pull requests

4 participants