mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-09-24 16:40:55 -06:00
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:
parent
6abda7ab68
commit
ea1b2a91a7
@ -109,7 +109,12 @@ function createIcon(options, enableTooltips, shortcuts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
el.tabIndex = -1;
|
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;
|
return el;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2025,4 +2030,4 @@ SimpleMDE.prototype.toTextArea = function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = SimpleMDE;
|
module.exports = SimpleMDE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user