UnderlineMark added

This commit is contained in:
Chrissi2812
2018-09-06 11:19:10 +02:00
parent b57bfdaa84
commit 2489997e91
5 changed files with 54 additions and 1 deletions

View File

@@ -29,6 +29,14 @@
<icon name="strike" />
</button>
<button
class="menubar__button"
:class="{ 'is-active': marks.underline.active() }"
@click="marks.underline.command"
>
<icon name="underline" />
</button>
<button
class="menubar__button"
@click="marks.code.command"
@@ -141,6 +149,7 @@ import {
ItalicMark,
LinkMark,
StrikeMark,
UnderlineMark,
HistoryExtension,
} from 'tiptap-extensions'
@@ -166,6 +175,7 @@ export default {
new ItalicMark(),
new LinkMark(),
new StrikeMark(),
new UnderlineMark(),
new HistoryExtension(),
],
}