added support for text-based toolbar options

Added the ability to pass innerHTML text for toolbar icon anchors.
This commit is contained in:
Mike Angstadt 2016-10-20 14:44:48 -05:00 committed by GitHub
parent 6abda7ab68
commit 52cba119f4

View File

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