check active nodes

This commit is contained in:
Philipp Kühn
2020-03-30 14:42:10 +02:00
parent dde047687a
commit 1bc75751b3
3 changed files with 49 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
<button @click="editor.redo().focus()">
redo
</button>
<button @click="editor.bold().focus()">
<button @click="editor.bold().focus()" :class="{ 'is-active': editor.isActive.bold() }">
bold
</button>
</div>

View File

@@ -49,6 +49,11 @@ body {
outline: none;
}
.is-active {
background: black;
color: white;
}
// :not(pre) > code[class*="language-"], pre[class*="language-"] {
// background-color: $colorBlack;
// }