add cursor styling and configuration, remove second demo, disable initial content

This commit is contained in:
Hans Pagel
2020-09-25 23:55:34 +02:00
parent 32fa762890
commit 560edc93bb
4 changed files with 74 additions and 25 deletions

View File

@@ -22,19 +22,23 @@ export default {
mounted() {
this.editor = new Editor({
content: `
<p>
This is a radically reduced version of tiptap. It has only support for a document, paragraphs and text. Thats it. Its probably too much for real minimalists though.
</p>
<p>
The paragraph extension is not literally required, but you need at least one node. That node can be something different, for example to render a task list and only that task list.
</p>
`,
// TODO: This is added by every new user.
// content: `
// <p>
// This is a radically reduced version of tiptap. It has only support for a document, paragraphs and text. Thats it. Its probably too much for real minimalists though.
// </p>
// <p>
// The paragraph extension is not literally required, but you need at least one node. That node can be something different, for example to render a task list and only that task list.
// </p>
// `,
extensions: [
Document(),
Paragraph(),
Text(),
Yjs(),
Yjs({
name: 'Other User',
color: '#d6336c',
}),
],
})
},
@@ -44,3 +48,5 @@ export default {
},
}
</script>
<style lang="scss" src="./style.scss">