You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An example of creating a custom Mark to use with SuperDoc.
4
+
An example of creating a custom node to use with SuperDoc.
5
5
Note: Requires `SuperDoc 0.10.15` or later
6
6
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
9
9
10
10
[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)
11
11
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