docs: rename all the things
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
context('/demos/Guide/StoreContent/ExportHTML', () => {
|
||||
context('/demos/Guide/Content/ExportHTML', () => {
|
||||
before(() => {
|
||||
cy.visit('/demos/Guide/StoreContent/ExportHTML')
|
||||
cy.visit('/demos/Guide/Content/ExportHTML')
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -1,6 +1,6 @@
|
||||
context('/demos/Guide/StoreContent/ExportJSON', () => {
|
||||
context('/demos/Guide/Content/ExportJSON', () => {
|
||||
before(() => {
|
||||
cy.visit('/demos/Guide/StoreContent/ExportJSON')
|
||||
cy.visit('/demos/Guide/Content/ExportJSON')
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
7
docs/src/demos/Guide/Content/GenerateHTML/index.spec.js
Normal file
7
docs/src/demos/Guide/Content/GenerateHTML/index.spec.js
Normal file
@@ -0,0 +1,7 @@
|
||||
context('/demos/Guide/Content/GenerateHTML', () => {
|
||||
before(() => {
|
||||
cy.visit('/demos/Guide/Content/GenerateHTML')
|
||||
})
|
||||
|
||||
// TODO: Write tests
|
||||
})
|
||||
51
docs/src/demos/Guide/Content/GenerateHTML/index.vue
Normal file
51
docs/src/demos/Guide/Content/GenerateHTML/index.vue
Normal file
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<pre><code>{{ output }}</code></pre>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { generateHTML } from '@tiptap/html'
|
||||
import Document from '@tiptap/extension-document'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
import Bold from '@tiptap/extension-bold'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
output: '',
|
||||
json: {
|
||||
type: 'document',
|
||||
content: [
|
||||
{
|
||||
type: 'paragraph',
|
||||
content: [
|
||||
{
|
||||
type: 'text',
|
||||
text: 'Example ',
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
marks: [
|
||||
{
|
||||
type: 'bold',
|
||||
},
|
||||
],
|
||||
text: 'Text',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.output = generateHTML(this.json, [
|
||||
Document,
|
||||
Paragraph,
|
||||
Text,
|
||||
Bold,
|
||||
])
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@@ -1,6 +1,6 @@
|
||||
context('/demos/Guide/StoreContent/ReadOnly', () => {
|
||||
context('/demos/Guide/Content/ReadOnly', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/demos/Guide/StoreContent/ReadOnly')
|
||||
cy.visit('/demos/Guide/Content/ReadOnly')
|
||||
})
|
||||
|
||||
it.skip('should be read-only', () => {
|
||||
Reference in New Issue
Block a user