refactoring
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
@@ -11,16 +11,6 @@ export default Node.create({
|
|||||||
|
|
||||||
draggable: true,
|
draggable: true,
|
||||||
|
|
||||||
selectable: true,
|
|
||||||
|
|
||||||
addAttributes() {
|
|
||||||
return {
|
|
||||||
checked: {
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parseHTML() {
|
parseHTML() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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: `
|
||||||
|
|||||||
Reference in New Issue
Block a user