Skip to content

Commit

Permalink
Add default table component in the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoinel authored and ifox committed Mar 2, 2020
1 parent 754e4cc commit 150eb3b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/js/components/WysiwygTiptap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@
type: Object,
required: false,
default: function () {
return {}
return {
modules: {}
}
}
}
},
Expand Down
14 changes: 14 additions & 0 deletions frontend/js/components/blocks/BlockTable.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<template>
<div class="block__body">
<a17-wysiwyg-tiptap :name="fieldName('html')" label="Body" :options='{"modules":{"toolbar":["table"],"syntax":false}}' placeholder='Insert your table' editSource="true" inStore="value"></a17-wysiwyg-tiptap>
</div>
</template>

<script>
import BlockMixin from '@/mixins/block'
export default {
name: 'A17Bodytable',
mixins: [BlockMixin]
}
</script>

0 comments on commit 150eb3b

Please sign in to comment.