-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed saving but and started on tables
- Loading branch information
Sebastian Hilger
committed
Jun 30, 2019
1 parent
2a10098
commit 6f7c0c2
Showing
5 changed files
with
143 additions
and
57 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<template> | ||
<span> | ||
<button | ||
type="button" | ||
class=" | ||
btn | ||
btn-default | ||
p-2 | ||
leading-none | ||
text-xs | ||
min-w-8 | ||
h-8 | ||
tiptap-button | ||
" | ||
:class="[ | ||
(isActive.table() ? 'btn-primary' : '') | ||
]" | ||
@click="commands.createTable({rowsCount: 2, colsCount: 2, withHeaderRow: false })" | ||
> | ||
<font-awesome-icon :icon="['fas', 'table']"> | ||
</font-awesome-icon> | ||
</button> | ||
</span> | ||
</template> | ||
|
||
<script> | ||
import { library } from '@fortawesome/fontawesome-svg-core' | ||
import { faTable } from '@fortawesome/free-solid-svg-icons' | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' | ||
library.add(faTable) | ||
export default { | ||
props: ['isActive', 'commands'], | ||
components: { | ||
FontAwesomeIcon, | ||
}, | ||
} | ||
</script> | ||
|
||
|
||
|