added support for text-based toolbar options

Added the ability to pass innerHTML text for toolbar icon anchors.
pull/445/head
Mike Angstadt 8 years ago committed by GitHub
parent 6abda7ab68
commit 52cba119f4

@ -108,6 +108,10 @@ function createIcon(options, enableTooltips, shortcuts) {
}
}
if(options.innerHTML) {
el.innerHTML = options.innerHTML;
}
el.tabIndex = -1;
el.className = options.className;
return el;
@ -2025,4 +2029,4 @@ SimpleMDE.prototype.toTextArea = function() {
}
};
module.exports = SimpleMDE;
module.exports = SimpleMDE;

Loading…
Cancel
Save