Skip to content

Commit

Permalink
Merge pull request #57 from acrobat/fontawesome3-patch
Browse files Browse the repository at this point in the history
Added fontawesome 3.x support
  • Loading branch information
toopay committed May 13, 2014
2 parents 30a48fe + 9f181be commit 86fa31b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/bootstrap-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@
data: [{
name: 'cmdBold',
title: 'Bold',
icon: { glyph: 'glyphicon glyphicon-bold', fa: 'fa fa-bold' },
icon: { glyph: 'glyphicon glyphicon-bold', fa: 'fa fa-bold', 'fa-3': 'icon-bold' },
callback: function(e){
// Give/remove ** surround the selection
var chunk, cursor, selected = e.getSelection(), content = e.getContent()
Expand Down Expand Up @@ -749,7 +749,7 @@
},{
name: 'cmdItalic',
title: 'Italic',
icon: { glyph: 'glyphicon glyphicon-italic', fa: 'fa fa-italic' },
icon: { glyph: 'glyphicon glyphicon-italic', fa: 'fa fa-italic', 'fa-3': 'icon-italic' },
callback: function(e){
// Give/remove * surround the selection
var chunk, cursor, selected = e.getSelection(), content = e.getContent()
Expand Down Expand Up @@ -778,7 +778,7 @@
},{
name: 'cmdHeading',
title: 'Heading',
icon: { glyph: 'glyphicon glyphicon-header', fa: 'fa fa-font' },
icon: { glyph: 'glyphicon glyphicon-header', fa: 'fa fa-font', 'fa-3': 'icon-font' },
callback: function(e){
// Append/remove ### surround the selection
var chunk, cursor, selected = e.getSelection(), content = e.getContent(), pointer, prevChar
Expand Down Expand Up @@ -814,7 +814,7 @@
data: [{
name: 'cmdUrl',
title: 'URL/Link',
icon: { glyph: 'glyphicon glyphicon-globe', fa: 'fa fa-globe' },
icon: { glyph: 'glyphicon glyphicon-globe', fa: 'fa fa-globe', 'fa-3': 'icon-globe' },
callback: function(e){
// Give [] surround the selection and prepend the link
var chunk, cursor, selected = e.getSelection(), content = e.getContent(), link
Expand All @@ -840,7 +840,7 @@
},{
name: 'cmdImage',
title: 'Image',
icon: { glyph: 'glyphicon glyphicon-picture', fa: 'fa fa-picture-o' },
icon: { glyph: 'glyphicon glyphicon-picture', fa: 'fa fa-picture-o', 'fa-3': 'icon-picture' },
callback: function(e){
// Give ![] surround the selection and prepend the image link
var chunk, cursor, selected = e.getSelection(), content = e.getContent(), link
Expand Down Expand Up @@ -872,7 +872,7 @@
data: [{
name: 'cmdList',
title: 'List',
icon: { glyph: 'glyphicon glyphicon-list', fa: 'fa fa-list' },
icon: { glyph: 'glyphicon glyphicon-list', fa: 'fa fa-list', 'fa-3': 'icon-list-ul' },
callback: function(e){
// Prepend/Give - surround the selection
var chunk, cursor, selected = e.getSelection(), content = e.getContent()
Expand Down Expand Up @@ -925,7 +925,7 @@
title: 'Preview',
btnText: 'Preview',
btnClass: 'btn btn-primary btn-sm',
icon: { glyph: 'glyphicon glyphicon-search', fa: 'fa fa-search' },
icon: { glyph: 'glyphicon glyphicon-search', fa: 'fa fa-search', 'fa-3': 'icon-search' },
callback: function(e){
// Check the preview mode and toggle based on this flag
var isPreview = e.$isPreview,content
Expand Down

0 comments on commit 86fa31b

Please sign in to comment.