diff --git a/examples/Components/Routes/Title/index.vue b/examples/Components/Routes/Title/index.vue index ce0bcd4f..13d59c9d 100644 --- a/examples/Components/Routes/Title/index.vue +++ b/examples/Components/Routes/Title/index.vue @@ -17,18 +17,21 @@ export default { data() { return { editor: new Editor({ + autoFocus: true, extensions: [ new Doc(), new Title(), new Placeholder({ - emptyNodeClass: 'is-empty', - emptyNodeText: 'Write something …', + showOnlyCurrent: false, + emptyNodeText: node => { + if (node.type.name === 'title') { + return 'Give me a name' + } + + return 'Write something' + }, }), ], - content: ` -

This is a fixed title.

-

With ProseMirror you can force a document layout. Try to remove this title it – it's not possible.

- `, }), } }, @@ -39,8 +42,8 @@ export default {