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

How to configure the WYSIWYG Editor #49

Closed
noxify opened this issue Apr 28, 2017 · 3 comments
Closed

How to configure the WYSIWYG Editor #49

noxify opened this issue Apr 28, 2017 · 3 comments

Comments

@noxify
Copy link
Contributor

noxify commented Apr 28, 2017

Hi,

is it possible to change the default button configuration from the wysiwyg editor?

I found the default configuration in:
https://github.com/BKWLD/decoy/blob/master/assets/js/wysiwyg/redactor.js#L20

But I didn't found a way to change the buttons.

In the Custom Fields Documenation there is a reference to http://docs.decoy.bukwild.com/wysiwyg but it's a dead link.

Maybe it's possible to use something like this:

Former::wysiwyg('body')->buttons(['bold', 'italic', 'link']);

or

Former::wysiwyg('body')->config(['buttons' => ['bold', 'italic', 'link']]);

Or is there already some magic to do this?

Thanks!

@noxify
Copy link
Contributor Author

noxify commented Apr 28, 2017

my bad... http://docs.decoy.bukwild.com/customize

@noxify noxify closed this as completed Apr 28, 2017
@noxify
Copy link
Contributor Author

noxify commented Apr 28, 2017

I'm not sure what's the problem is, but i have no clue how to extend it.
I copied the code from the docs into the "app.js" (just for testing) but the result after running the webpack script was nothing.

I think it's just a user handling, but maybe you can explain it with one or two sentences :)

@noxify noxify reopened this Apr 28, 2017
@weotch
Copy link
Member

weotch commented May 1, 2017

Eh, it's awkward the way this configuration is handled now. It's a legacy of before we open-sourced the project and we would compile the js/css as part of the grunt (and later webpack) tooling for the app we were integrating Decoy with.

Gonna close this as it's the same as #27 but I'll make sure this is part of our next release ... I think we'll have that out htis week.

@weotch weotch closed this as completed May 1, 2017
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