Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
Merge branch 'Zeald-support-buttonLabels'
Browse files Browse the repository at this point in the history
  • Loading branch information
linkesch committed Sep 25, 2014
2 parents 4c88d29 + 58e34f6 commit 5b8a8cb
Show file tree
Hide file tree
Showing 18 changed files with 98 additions and 6 deletions.
4 changes: 4 additions & 0 deletions dist/js/addons/medium-editor-insert-embeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
if (buttonLabels == 'fontawesome' || typeof buttonLabels === 'object' && !!(buttonLabels.fontawesome)) {
label = '<i class="fa fa-code"></i>';
}
if (typeof buttonLabels === 'object' && buttonLabels.embed) {
label = buttonLabels.embed;
}

return '<button data-addon="embeds" data-action="add" class="medium-editor-action mediumInsert-action">' + label + '</button>';
},

Expand Down
2 changes: 1 addition & 1 deletion dist/js/addons/medium-editor-insert-embeds.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/js/addons/medium-editor-insert-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
if (buttonLabels == 'fontawesome' || typeof buttonLabels === 'object' && !!(buttonLabels.fontawesome)) {
label = '<i class="fa fa-picture-o"></i>';
}

if (typeof buttonLabels === 'object' && buttonLabels.img) {
label = buttonLabels.img;
}

return '<button data-addon="images" data-action="add" class="medium-editor-action mediumInsert-action">'+label+'</button>';
},

Expand Down
Loading

0 comments on commit 5b8a8cb

Please sign in to comment.