Added role="button" to toolbar buttons, closes #38

This commit is contained in:
Jeroen Akkerman 2018-12-20 01:57:12 +01:00
parent 75cfd34191
commit b31c0a1a02
2 changed files with 2 additions and 1 deletions

2
dist/easymde.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -119,6 +119,7 @@ function createIcon(options, enableTooltips, shortcuts) {
options = options || {};
var el = document.createElement('button');
el.className = options.name;
el.setAttribute('role', 'button');
enableTooltips = (enableTooltips == undefined) ? true : enableTooltips;
if (options.title && enableTooltips) {