Merge branch 'main' of github.com:ueberdosis/tiptap-next into main
This commit is contained in:
@@ -16,7 +16,7 @@ export default Node.create({
|
||||
},
|
||||
|
||||
renderHTML({ HTMLAttributes }) {
|
||||
return ['node-view', mergeAttributes(HTMLAttributes)]
|
||||
return ['node-view', mergeAttributes(HTMLAttributes), 0]
|
||||
},
|
||||
|
||||
addNodeView() {
|
||||
|
||||
@@ -18,7 +18,7 @@ export default Node.create({
|
||||
},
|
||||
|
||||
renderHTML({ HTMLAttributes }) {
|
||||
return ['react-component', mergeAttributes(HTMLAttributes)]
|
||||
return ['react-component', mergeAttributes(HTMLAttributes), 0]
|
||||
},
|
||||
|
||||
addNodeView() {
|
||||
|
||||
@@ -18,7 +18,7 @@ export default Node.create({
|
||||
},
|
||||
|
||||
renderHTML({ HTMLAttributes }) {
|
||||
return ['vue-component', mergeAttributes(HTMLAttributes)]
|
||||
return ['vue-component', mergeAttributes(HTMLAttributes), 0]
|
||||
},
|
||||
|
||||
addNodeView() {
|
||||
|
||||
@@ -168,7 +168,7 @@ Have a look at all of the core commands listed below. They should give you a goo
|
||||
| .newlineInCode() | Add a newline character in code. |
|
||||
| .replace() | Replaces text with a node. |
|
||||
| .replaceRange() | Replaces text with a node within a range. |
|
||||
| .resetNodeAttributes() | Resets all node attributes to the default value. |
|
||||
| .resetAttributes() | Resets some node or mark attributes to the default value. |
|
||||
| .selectParentNode() | Select the parent node. |
|
||||
| .setMark() | Add a mark with new attributes. |
|
||||
| .setNode() | Replace a given range with a node. |
|
||||
@@ -179,7 +179,7 @@ Have a look at all of the core commands listed below. They should give you a goo
|
||||
| .undoInputRule() | Undo an input rule. |
|
||||
| .unsetAllMarks() | Remove all marks in the current selection. |
|
||||
| .unsetMark() | Remove a mark in the current selection. |
|
||||
| .updateNodeAttributes() | Update attributes of a node. |
|
||||
| .updateAttributes() | Update attributes of a node or mark. |
|
||||
|
||||
### Lists
|
||||
| Command | Description |
|
||||
|
||||
@@ -19,9 +19,6 @@ const editor = new Editor({
|
||||
onSelectionUpdate({ editor }) {
|
||||
// The selection has changed.
|
||||
},
|
||||
onViewUpdate({ editor }) {
|
||||
// The view has changed.
|
||||
},
|
||||
onTransaction({ editor, transaction }) {
|
||||
// The editor state has changed.
|
||||
},
|
||||
@@ -57,10 +54,6 @@ editor.on('selectionUpdate', ({ editor }) => {
|
||||
// The selection has changed.
|
||||
}
|
||||
|
||||
editor.on('viewUpdate', ({ editor }) => {
|
||||
// The view has changed.
|
||||
}
|
||||
|
||||
editor.on('transaction', ({ editor, transaction }) => {
|
||||
// The editor state has changed.
|
||||
}
|
||||
@@ -113,9 +106,6 @@ const CustomExtension = Extension.create({
|
||||
onSelectionUpdate({ editor }) {
|
||||
// The selection has changed.
|
||||
},
|
||||
onViewUpdate({ editor }) {
|
||||
// The view has changed.
|
||||
},
|
||||
onTransaction({ editor, transaction }) {
|
||||
// The editor state has changed.
|
||||
},
|
||||
|
||||
@@ -51,6 +51,7 @@ const editor = new Editor({
|
||||
Text,
|
||||
// …
|
||||
],
|
||||
})
|
||||
```
|
||||
|
||||
Learn [more about custom extensions in our guide](/guide/extend-extensions).
|
||||
|
||||
@@ -49,6 +49,7 @@ const editor = new Editor({
|
||||
Text,
|
||||
// …
|
||||
],
|
||||
})
|
||||
```
|
||||
|
||||
Learn [more about custom extensions in our guide](/guide/custom-extensions).
|
||||
|
||||
Reference in New Issue
Block a user