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

can't pass custom toolbar #52

Open
ktwbc opened this issue Nov 23, 2013 · 1 comment
Open

can't pass custom toolbar #52

ktwbc opened this issue Nov 23, 2013 · 1 comment
Labels

Comments

@ktwbc
Copy link

ktwbc commented Nov 23, 2013

There appears to be no way to pass a custom toolbar or additonal buttons. The orignal docs show you're supposed to pass a json style array, but within the yii widget, I haven't found a way to pass this correctly and there are no widget documentation examples. Can you update the docs and show how to make the yii widget do this?

@ktwbc
Copy link
Author

ktwbc commented Nov 24, 2013

Played around with it and got it working. would still be helpful to add these to the docs
under options for $this->widget('ImperaviRedactorWidget

'buttons'=>array('html', '|', 'formatting','bold','|','restore_default'),
'buttonsCustom'=>array('restore_default'=>array(
'title'=>'New Button',
'text'=>'Restore Default',
'callback'=>'js:restore_default'
)

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

No branches or pull requests

1 participant