2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-09-24 16:40:55 -06:00

Fix an old bug with headers icons rendering

This commit is contained in:
Nathanaël Jourdane 2019-02-12 18:57:32 +01:00
parent 7de38d2a01
commit 0ee657f5b3
3 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -161,19 +161,19 @@
content: "1"; content: "1";
} }
.editor-toolbar button.heading-2:after { .editor-toolbar button.header-2:after {
content: "2"; content: "2";
} }
.editor-toolbar button.heading-3:after { .editor-toolbar button.header-3:after {
content: "3"; content: "3";
} }
.editor-toolbar button.heading-bigger:after { .editor-toolbar button.header-bigger:after {
content: "▲"; content: "▲";
} }
.editor-toolbar button.heading-smaller:after { .editor-toolbar button.header-smaller:after {
content: "▼"; content: "▼";
} }

View File

@ -1187,6 +1187,8 @@ var toolbarBuiltInButtons = {
name: 'heading', name: 'heading',
action: toggleHeadingSmaller, action: toggleHeadingSmaller,
className: { className: {
// We use both fa-header and fa-heading to keep compatibility with FontAwesome 4
// See https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes
fa: 'fa fa-header fa-heading', fa: 'fa fa-header fa-heading',
material: 'material-icons' material: 'material-icons'
}, },