Skip to content

Commit 62612e4

Browse files
committed
chore: update README on custom node example
1 parent e4acb71 commit 62612e4

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# SuperDoc
2-
## SuperDoc: Creating a custom mark
2+
## SuperDoc: Creating a custom node
33

4-
An example of creating a custom Mark to use with SuperDoc.
4+
An example of creating a custom node to use with SuperDoc.
55
Note: Requires `SuperDoc 0.10.15` or later
66

7-
[We create a custom mark here](https://github.com/Harbour-Enterprises/SuperDoc/blob/main/examples/vue-custom-mark/src/custom-mark.js)
8-
Note that we added a custom command to the mark, called setMyCustomMark. We can now insert this mark by calling this command from `superdoc.activeEditor.commands`
7+
[We create a custom node here](https://github.com/Harbour-Enterprises/SuperDoc/blob/develop/examples/vue-custom-node-example/src/custom-node.js#L62)
8+
Note that we added a custom command to the node, called insertCustomNode. We can now insert this node by simply calling this command from editor.commands.insertCustomNode
99

1010
[Then we can pass it into the editor via the `editorExtensions` key](https://github.com/Harbour-Enterprises/SuperDoc/blob/e724d31eaba50a423ed0d73a4264a09b33d06eaa/examples/vue-custom-mark/src/App.vue#L20)
1111

12-
## Exporting the docx
13-
This example also shows one way to export the docx to a blob whenever the content changes in the editor

0 commit comments

Comments
 (0)