bootstrap-wysihtml5 icon indicating copy to clipboard operation
bootstrap-wysihtml5 copied to clipboard

icons not showing up

Open carcinocron opened this issue 10 years ago • 4 comments

I see that you guys use <i class="icon-pencil"></i> and that bootstrap uses <i class="glyphicon glyphicon-pencil"></i>. Icons don't show up unless I rewrite the class manually for the element in Chrome. I don't understand why there are 2 naming conventions for what seems like the same icons in the same library.

Anyways, is there a way to fix this without overriding the entire template for each button manually in javascript? Maybe there should be a way to pass 'glyphicon' as a parameter?

carcinocron avatar Feb 21 '14 18:02 carcinocron

hi, i don't know when this was posted, but i'm having the same problem. Is there a workround?

lotrietb avatar May 26 '14 14:05 lotrietb

I just ctrl-f + replaced icon- with glyphicon glyphicon- in bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min.js

carcinocron avatar May 29 '14 19:05 carcinocron

Had the same issue as well. Also, helps to update the 'btn' class to have 'btn btn-default' so it actually pops.

Updated: Line 8 for Dropdown, Then a find a replace for <a class='btn" to <a class='btn btn-default".

ghost avatar Oct 12 '15 16:10 ghost

@ghost What about btn class, you may just add: size: 'default' in initialization options:

$('#wiki-content').wysihtml5({
        size: 'default'
});

impcyber avatar Nov 09 '17 15:11 impcyber