refactoring

This commit is contained in:
Philipp Kühn
2020-11-25 20:46:07 +01:00
parent 607a2ca295
commit 24a3cb444a
3 changed files with 3 additions and 20 deletions

View File

@@ -37,6 +37,7 @@ export default {
padding: 0.5rem; padding: 0.5rem;
margin: 0.5rem 0; margin: 0.5rem 0;
border-radius: 0.5rem; border-radius: 0.5rem;
background: white;
box-shadow: box-shadow:
0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.1),
0px 10px 20px rgba(0, 0, 0, 0.1), 0px 10px 20px rgba(0, 0, 0, 0.1),

View File

@@ -11,16 +11,6 @@ export default Node.create({
draggable: true, draggable: true,
selectable: true,
addAttributes() {
return {
checked: {
default: false,
},
}
},
parseHTML() { parseHTML() {
return [ return [
{ {

View File

@@ -5,12 +5,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text'
import Dropcursor from '@tiptap/extension-dropcursor'
import DraggableItem from './DraggableItem.js' import DraggableItem from './DraggableItem.js'
export default { export default {
@@ -27,10 +22,7 @@ export default {
mounted() { mounted() {
this.editor = new Editor({ this.editor = new Editor({
extensions: [ extensions: [
Document, ...defaultExtensions(),
Paragraph,
Text,
Dropcursor,
DraggableItem, DraggableItem,
], ],
content: ` content: `