Merge branch 'main' of github.com:ueberdosis/tiptap-next into main
This commit is contained in:
@@ -111,6 +111,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.files = collect(require.context('~/demos/', true, /.+\..+$/).keys())
|
this.files = collect(require.context('~/demos/', true, /.+\..+$/).keys())
|
||||||
.filter(path => path.startsWith(`./${this.name}/`))
|
.filter(path => path.startsWith(`./${this.name}/`))
|
||||||
|
.filter(path => !path.endsWith('.spec.js') && !path.endsWith('.spec.ts'))
|
||||||
.map(path => path.replace('./', ''))
|
.map(path => path.replace('./', ''))
|
||||||
.map(path => {
|
.map(path => {
|
||||||
const extension = path.split('.').pop()
|
const extension = path.split('.').pop()
|
||||||
|
|||||||
@@ -67,11 +67,11 @@ export default {
|
|||||||
Highlight,
|
Highlight,
|
||||||
],
|
],
|
||||||
content: `
|
content: `
|
||||||
<p>This isn’t highlighted.</s></p>
|
<p>This isn’t highlighted.</s></p>
|
||||||
<p><mark>But that one is.</mark></p>
|
<p><mark>But that one is.</mark></p>
|
||||||
<p><mark style="background-color: red;">And this is highlighted too, but in a different color.</mark></p>
|
<p><mark style="background-color: red;">And this is highlighted too, but in a different color.</mark></p>
|
||||||
<p><mark data-color="#ffa8a8">And this one has a data attribute.</mark></p>
|
<p><mark data-color="#ffa8a8">And this one has a data attribute.</mark></p>
|
||||||
`,
|
`,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ new Editor({
|
|||||||
extensions: [
|
extensions: [
|
||||||
...defaultExtensions(),
|
...defaultExtensions(),
|
||||||
Highlight,
|
Highlight,
|
||||||
]
|
],
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user