From 02cee263b2f1dda948d535a048d3623a6f7a64d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 28 Aug 2018 09:31:08 +0200 Subject: [PATCH] add export --- README.md | 2 +- examples/Components/Routes/Basic/index.vue | 7 +- examples/Components/Routes/Embeds/index.vue | 7 +- examples/Components/Routes/Export/index.vue | 190 ++++++++++++++++++ .../Components/Routes/HidingMenuBar/index.vue | 7 +- examples/Components/Routes/Links/index.vue | 5 +- .../Routes/MarkdownShortcuts/index.vue | 7 +- .../Components/Routes/MenuBubble/index.vue | 7 +- examples/Components/Routes/ReadOnly/index.vue | 7 +- examples/Components/Routes/TodoList/index.vue | 7 +- examples/Components/Subnavigation/index.vue | 3 + examples/main.js | 8 + packages/tiptap/src/components/editor.js | 15 +- 13 files changed, 224 insertions(+), 48 deletions(-) create mode 100644 examples/Components/Routes/Export/index.vue diff --git a/README.md b/README.md index c9b869c4..c1034bd4 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ export default { | `editable` | `Boolean` | `true` | When set to `false` the editor is read-only. | | `doc` | `Object` | `null` | The editor state object used by Prosemirror. You can also pass HTML to the `content` slot. When used both, the `content` slot will be ignored. | | `extensions` | `Array` | `[]` | A list of extensions used, by the editor. This can be `Nodes`, `Marks` or `Plugins`. | -| `@update` | `Function` | `undefined` | This will return the current `state` of Prosemirror on every change. | +| `@update` | `Object` | `undefined` | This will return an Object with the current `state` of Prosemirror, a `getJSON()` and `getHTML()` function on every change. | ## Scoped Slots diff --git a/examples/Components/Routes/Basic/index.vue b/examples/Components/Routes/Basic/index.vue index 073c7f85..c1293cd6 100644 --- a/examples/Components/Routes/Basic/index.vue +++ b/examples/Components/Routes/Basic/index.vue @@ -1,6 +1,6 @@