docs: minor improvements to the demo style
This commit is contained in:
@@ -109,6 +109,15 @@ export default {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(#616161, 0.1);
|
background-color: rgba(#616161, 0.1);
|
||||||
color: #616161;
|
color: #616161;
|
||||||
|
|||||||
@@ -265,6 +265,15 @@ export default {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(#616161, 0.1);
|
background-color: rgba(#616161, 0.1);
|
||||||
color: #616161;
|
color: #616161;
|
||||||
|
|||||||
@@ -147,6 +147,15 @@ export default {
|
|||||||
> * + * {
|
> * + * {
|
||||||
margin-top: 0.75em;
|
margin-top: 0.75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mention {
|
.mention {
|
||||||
|
|||||||
@@ -139,6 +139,15 @@ export default {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(#616161, 0.1);
|
background-color: rgba(#616161, 0.1);
|
||||||
color: #616161;
|
color: #616161;
|
||||||
|
|||||||
@@ -124,6 +124,15 @@ export default {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(#616161, 0.1);
|
background-color: rgba(#616161, 0.1);
|
||||||
color: #616161;
|
color: #616161;
|
||||||
|
|||||||
@@ -65,6 +65,15 @@ export default {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(#616161, 0.1);
|
background-color: rgba(#616161, 0.1);
|
||||||
color: #616161;
|
color: #616161;
|
||||||
|
|||||||
@@ -4,56 +4,56 @@
|
|||||||
insertTable
|
insertTable
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<template v-if="editor.isActive('table')">
|
<template>
|
||||||
<button @click="editor.chain().focus().addColumnBefore().run()" v-if="editor.can().addColumnBefore()">
|
<button @click="editor.chain().focus().addColumnBefore().run()" :disabled="!editor.can().addColumnBefore()">
|
||||||
addColumnBefore
|
addColumnBefore
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().addColumnAfter().run()" v-if="editor.can().addColumnAfter()">
|
<button @click="editor.chain().focus().addColumnAfter().run()" :disabled="!editor.can().addColumnAfter()">
|
||||||
addColumnAfter
|
addColumnAfter
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().deleteColumn().run()" v-if="editor.can().deleteColumn()">
|
<button @click="editor.chain().focus().deleteColumn().run()" :disabled="!editor.can().deleteColumn()">
|
||||||
deleteColumn
|
deleteColumn
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().addRowBefore().run()" v-if="editor.can().addRowBefore()">
|
<button @click="editor.chain().focus().addRowBefore().run()" :disabled="!editor.can().addRowBefore()">
|
||||||
addRowBefore
|
addRowBefore
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().addRowAfter().run()" v-if="editor.can().addRowAfter()">
|
<button @click="editor.chain().focus().addRowAfter().run()" :disabled="!editor.can().addRowAfter()">
|
||||||
addRowAfter
|
addRowAfter
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().deleteRow().run()" v-if="editor.can().deleteRow()">
|
<button @click="editor.chain().focus().deleteRow().run()" :disabled="!editor.can().deleteRow()">
|
||||||
deleteRow
|
deleteRow
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().deleteTable().run()" v-if="editor.can().deleteTable()">
|
<button @click="editor.chain().focus().deleteTable().run()" :disabled="!editor.can().deleteTable()">
|
||||||
deleteTable
|
deleteTable
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().mergeCells().run()" v-if="editor.can().mergeCells()">
|
<button @click="editor.chain().focus().mergeCells().run()" :disabled="!editor.can().mergeCells()">
|
||||||
mergeCells
|
mergeCells
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().splitCell().run()" v-if="editor.can().splitCell()">
|
<button @click="editor.chain().focus().splitCell().run()" :disabled="!editor.can().splitCell()">
|
||||||
splitCell
|
splitCell
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().toggleHeaderColumn().run()" v-if="editor.can().toggleHeaderColumn()">
|
<button @click="editor.chain().focus().toggleHeaderColumn().run()" :disabled="!editor.can().toggleHeaderColumn()">
|
||||||
toggleHeaderColumn
|
toggleHeaderColumn
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().toggleHeaderRow().run()" v-if="editor.can().toggleHeaderRow()">
|
<button @click="editor.chain().focus().toggleHeaderRow().run()" :disabled="!editor.can().toggleHeaderRow()">
|
||||||
toggleHeaderRow
|
toggleHeaderRow
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().toggleHeaderCell().run()" v-if="editor.can().toggleHeaderCell()">
|
<button @click="editor.chain().focus().toggleHeaderCell().run()" :disabled="!editor.can().toggleHeaderCell()">
|
||||||
toggleHeaderCell
|
toggleHeaderCell
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().mergeOrSplit().run()" v-if="editor.can().mergeOrSplit()">
|
<button @click="editor.chain().focus().mergeOrSplit().run()" :disabled="!editor.can().mergeOrSplit()">
|
||||||
mergeOrSplit
|
mergeOrSplit
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().setCellAttribute('colspan', 2).run()" v-if="editor.can().setCellAttribute('colspan', 2)">
|
<button @click="editor.chain().focus().setCellAttribute('colspan', 2).run()" :disabled="!editor.can().setCellAttribute('colspan', 2)">
|
||||||
setCellAttribute
|
setCellAttribute
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().fixTables().run()" v-if="editor.can().fixTables()">
|
<button @click="editor.chain().focus().fixTables().run()" :disabled="!editor.can().fixTables()">
|
||||||
fixTables
|
fixTables
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().goToNextCell().run()" v-if="editor.can().goToNextCell()">
|
<button @click="editor.chain().focus().goToNextCell().run()" :disabled="!editor.can().goToNextCell()">
|
||||||
goToNextCell
|
goToNextCell
|
||||||
</button>
|
</button>
|
||||||
<button @click="editor.chain().focus().goToPreviousCell().run()" v-if="editor.can().goToPreviousCell()">
|
<button @click="editor.chain().focus().goToPreviousCell().run()" :disabled="!editor.can().goToPreviousCell()">
|
||||||
goToPreviousCell
|
goToPreviousCell
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
@@ -95,14 +95,8 @@ export default {
|
|||||||
],
|
],
|
||||||
content: `
|
content: `
|
||||||
<h1>
|
<h1>
|
||||||
Fun with tables
|
Have you seen our tables? They are amazing.
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
|
||||||
Greeks were the first people to use a table as a dining place. Not sure why they put their plates on a computer display, but I don’t care. If you want to create your own table, tiptap got you covered. No matter, what you want to do with those tables.
|
|
||||||
</p>
|
|
||||||
<h2>
|
|
||||||
Amazing features
|
|
||||||
</h2>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>tables with rows, headers and cells</li>
|
<li>tables with rows, headers and cells</li>
|
||||||
<li>Support for <code>colgroup</code> and <code>rowspan</code></li>
|
<li>Support for <code>colgroup</code> and <code>rowspan</code></li>
|
||||||
@@ -145,6 +139,15 @@ export default {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(#616161, 0.1);
|
background-color: rgba(#616161, 0.1);
|
||||||
color: #616161;
|
color: #616161;
|
||||||
@@ -232,7 +235,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tableWrapper {
|
.tableWrapper {
|
||||||
padding: 1rem 0;
|
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -121,6 +121,15 @@ export default {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(#616161, 0.1);
|
background-color: rgba(#616161, 0.1);
|
||||||
color: #616161;
|
color: #616161;
|
||||||
|
|||||||
@@ -128,6 +128,15 @@ export default {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(#616161, 0.1);
|
background-color: rgba(#616161, 0.1);
|
||||||
color: #616161;
|
color: #616161;
|
||||||
|
|||||||
Reference in New Issue
Block a user