diff --git a/README.md b/README.md
index c1034bd4..ee50840b 100644
--- a/README.md
+++ b/README.md
@@ -59,6 +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`. |
+| `@init` | `Object` | `undefined` | This will return an Object with the current `state` and `view` of Prosemirror on init. |
| `@update` | `Object` | `undefined` | This will return an Object with the current `state` of Prosemirror, a `getJSON()` and `getHTML()` function on every change. |
## Scoped Slots
@@ -104,6 +105,7 @@ import {
CodeBlockNode,
HardBreakNode,
HeadingNode,
+ ImageNode,
ListItemNode,
OrderedListNode,
TodoItemNode,
@@ -127,6 +129,7 @@ export default {
new CodeBlockNode(),
new HardBreakNode(),
new HeadingNode({ maxLevel: 3 }),
+ new ImageNode(),
new ListItemNode(),
new OrderedListNode(),
new TodoItemNode(),
@@ -352,6 +355,24 @@ export default {
```
+## Development Setup
+
+Currently only Yarn is supported for development because of a feature called workspaces we are using here.
+
+``` bash
+# install deps
+yarn install
+
+# serve examples at localhost:3000
+yarn start
+
+# build dist files for packages
+yarn build:packages
+
+# build dist files for examples
+yarn build:examples
+```
+
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
diff --git a/examples/Components/App/style.scss b/examples/Components/App/style.scss
index b712758f..cea996d2 100644
--- a/examples/Components/App/style.scss
+++ b/examples/Components/App/style.scss
@@ -72,6 +72,12 @@
margin: 0;
}
}
+
+ img {
+ max-width: 100%;
+ border-radius: 3px;
+ }
+
}
}
diff --git a/examples/Components/Routes/Images/index.vue b/examples/Components/Routes/Images/index.vue
new file mode 100644
index 00000000..5b4e4f8f
--- /dev/null
+++ b/examples/Components/Routes/Images/index.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+ Images
+
+
+ This is basic example of implementing images. Try to drop new images here. Reordering also works.
+