FontAwesome 5 compatibility

* Icons from FA5 should now work, but you have to use the fa-v4-shims to get all the icons right.
* FA4 icons still work like they used to.
This commit is contained in:
Jeroen Akkerman 2017-12-03 00:06:53 +01:00 committed by GitHub
parent 6abda7ab68
commit ea1b2a91a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,12 @@ function createIcon(options, enableTooltips, shortcuts) {
}
el.tabIndex = -1;
el.className = options.className;
// Create icon element and append as a child to the button.
var icon = document.createElement("i");
icon.className = options.className;
el.appendChild(icon);
return el;
}
@ -2025,4 +2030,4 @@ SimpleMDE.prototype.toTextArea = function() {
}
};
module.exports = SimpleMDE;
module.exports = SimpleMDE;