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;
|
el.tabIndex = -1;
|
||||||
|
|
||||||
// Create icon element and append as a child to the button
|
if (iconClasses.length > 0) {
|
||||||
var icon = document.createElement('i');
|
// Create icon element and append as a child to the button
|
||||||
for (var iconClassIndex = 0; iconClassIndex < iconClasses.length; iconClassIndex++) {
|
var icon = document.createElement('i');
|
||||||
var iconClass = iconClasses[iconClassIndex];
|
for (var iconClassIndex = 0; iconClassIndex < iconClasses.length; iconClassIndex++) {
|
||||||
icon.classList.add(iconClass);
|
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 there is a custom icon markup set, use that
|
||||||
if (typeof options.icon !== 'undefined') {
|
if (typeof options.icon !== 'undefined') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user