mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-23 09:54:28 -06:00
Update easymde.js
This commit is contained in:
parent
b675e611a4
commit
eee701ef86
@ -283,13 +283,15 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
|
||||
|
||||
el.tabIndex = -1;
|
||||
|
||||
// Create icon element and append as a child to the button
|
||||
var icon = document.createElement('i');
|
||||
for (var iconClassIndex = 0; iconClassIndex < iconClasses.length; iconClassIndex++) {
|
||||
var iconClass = iconClasses[iconClassIndex];
|
||||
icon.classList.add(iconClass);
|
||||
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++) {
|
||||
var iconClass = iconClasses[iconClassIndex];
|
||||
icon.classList.add(iconClass);
|
||||
}
|
||||
el.appendChild(icon);
|
||||
}
|
||||
el.appendChild(icon);
|
||||
|
||||
// If there is a custom icon markup set, use that
|
||||
if (typeof options.icon !== 'undefined') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user