jhollingworth / bootstrap-wysihtml5

Simple, beautiful wysiwyg editor
http://jhollingworth.github.com/bootstrap-wysihtml5/
MIT License
4.14k stars 1.01k forks source link

Failed to custom toolbar #358

Open arthurtalkgoal opened 9 years ago

arthurtalkgoal commented 9 years ago

I tried to add my new button to the toolbar as follow

# coffee
    $(this).wysihtml5 toolbar: 
        mynewbutton: '<li><a data-wysihtml5-command="insertSpeech">speech</a></li>'        
        blockquote: false
        color: true 
        html: true  

or


    $(this).wysihtml5 toolbar: "toolbar"

but _mynewbutton_ cannot be displayed.

What I tried to do is insert one button to the current default toobar. What is the best way?