mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-09-24 16:40:55 -06:00
Fix #380 Custom attributes for toolbar buttons
This commit is contained in:
parent
59a676bc8a
commit
33ae539f5e
@ -231,6 +231,12 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
|
||||
}
|
||||
}
|
||||
|
||||
if (options.attributes) {
|
||||
for (var attribute in options.attributes) {
|
||||
el.setAttribute(attribute, options.attributes[attribute]);
|
||||
}
|
||||
}
|
||||
|
||||
if (options.noDisable) {
|
||||
el.classList.add('no-disable');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user