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

Change some style that supported by Bootstrap 4

Open waggyman opened this issue 8 years ago • 12 comments

I create this Pull Request because there are some styles that not supported by bootstrap-4. I Found it when use this lib on my project :smile: This is based on #213

Fixes:

  • [x] Update bootstrap in bower.json
  • [x] Change default icon to fa not glyph
  • [x] Change btn class style

waggyman avatar Aug 01 '17 14:08 waggyman

does this affect BS3?

lodev09 avatar Aug 01 '17 14:08 lodev09

Yes of course, in BS4 btn-default is replaced by btn-secondary and in BS4 glyph is not supported again, so I change the default icon to font-awesome. Do you mind if I add font-awesome in bower.json?

waggyman avatar Aug 01 '17 14:08 waggyman

I meant what will happen for those who are still in BS3? We want to support BS4 but we don't want to ditch BS3 support e.g. by changing btn-default to btn-secondary.

Perhaps I'm missing something? @acrobat any thoughts?

lodev09 avatar Aug 01 '17 15:08 lodev09

Okay I add the btn-default again, I test it in my project again, and luckily it is not problem if we make the class like this

<button class="btn-default btn-secondary btn-sm">

I have try it use BS3 and BS4 and it work like this:

  • If we use BS3 the style for the button is from btn-default
  • And if we use BS4 the style for the button is from btn-secondary

This is the pict when I use BS3

use BS3


And this one when I use BS4

image

waggyman avatar Aug 02 '17 04:08 waggyman

Thanks @awebr000 ! @lodev09 @acrobat Thought on this? I think i'm gonna start to split the development branches into v2.x and this can be a baseline for v3.x branch - which happens to be a master at this point.

toopay avatar Aug 10 '17 18:08 toopay

@toopay yep I think that's the best way to handle the new bootstrap 4 like you did on previous versions :)

lodev09 avatar Aug 10 '17 23:08 lodev09

@toopay where is toopay? i can't wait this for bs4 , git new branch bs4 for this feature

buuug7 avatar Aug 11 '17 08:08 buuug7

Bs4 beta was dropped a few hours ago

stramel avatar Aug 11 '17 09:08 stramel

Preview option does not work, is it just me?

bnymn avatar Nov 04 '17 15:11 bnymn

This looks good. Will try to pull and test this one.

niknokseyer avatar Apr 03 '18 21:04 niknokseyer

A bit late on the show, but here are some thought.

@waggyman @lodev09 If you want to support BS3 and BS4 (which you should since a lot of us didn't switch yet), then you shouldn't delete the glyph icons completely, as can be seen on this line. I agree to change the default to "fa" but removing the glyph icon names entirely is a mistake since it could break some people's editor if they choose to keep the glyph as their default. Also, your bower file is quite outdated now on the dependencies side of it "bootstrap": "v4.0.0-alpha.6"

@niknokseyer I saw the "Preview" as broken too, then I found here that we can replace the parser with our own and that is what I did to fix mine.

$('textarea').markdown({
  parser: convertFunction, // or whatever
});

ghiscoding avatar Sep 20 '18 14:09 ghiscoding

Any news here? I'm also interested by the bs4 support, is there something missing to merge this?

njourdane avatar Jan 17 '19 16:01 njourdane