Button size option not supported yet?
luboskmetko opened this issue · 3 comments
Hey,
first of all, nice job on this editor!
I was trying to use button size option but it doesn't work. Isn't it implemented yet or am I doing something wrong?
Using "size": "sm"
for example but doesn't seem appropriate Bootstrap classes are generated in the code (only "btn btn-default"
). Editor and other options normally work.
Thanks!
Thx for reporting. It is implemented and it is working. I just forgot the api change mentioned in the documentation on this particular property in the templates.
So to get the correct behaviour in this version us it as follows:
$('#textarea').wysihtml5({
toolbar: {
'html': true
},
size: 'sm',
locale: 'de-DE'
});
As you can see, size is not part of toolbar, but it should be.
This will change in future versions to the correct behaviour as documented.
I will as well clean up the documentation. One big file is not sufficient.
Thanks! Indeed it works like this.
@Waxolunist I think you should update the doc here -> https://github.com/bootstrap-wysiwyg/bootstrap3-wysiwyg#buttons