Update easymde.js

pull/461/head
Jonathan 2 years ago committed by GitHub
parent b675e611a4
commit eee701ef86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -283,6 +283,7 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
el.tabIndex = -1;
if (iconClasses.length > 0) {
// Create icon element and append as a child to the button
var icon = document.createElement('i');
for (var iconClassIndex = 0; iconClassIndex < iconClasses.length; iconClassIndex++) {
@ -290,6 +291,7 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
icon.classList.add(iconClass);
}
el.appendChild(icon);
}
// If there is a custom icon markup set, use that
if (typeof options.icon !== 'undefined') {

Loading…
Cancel
Save