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

Unable to append to the toolbar #70

Open
cgibsonmm opened this issue Nov 24, 2018 · 1 comment
Open

Unable to append to the toolbar #70

cgibsonmm opened this issue Nov 24, 2018 · 1 comment

Comments

@cgibsonmm
Copy link

While looking through adding buttons to the toolbar to find out how to add buttons to the tool bar I have found that I am able to get a return from $(Trix.config.toolbar.content) is there a diffrent way I need to call this in the gem?

@lucaswjohnson
Copy link

lucaswjohnson commented Nov 24, 2018

EDIT: I didn't realize this was the ruby repo (whoops), but I believe it should be the same with using editor instead of config

You might find some of what you're looking for on the npm page: https://www.npmjs.com/package/trix#getting-started

var trix = document.querySelector("trix-editor")
trix.editor  // is a Trix.Editor instance

basically, it's just editor instead of config

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

2 participants