docs: update content
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-table-cell)
|
||||
[](https://npmcharts.com/compare/@tiptap/extension-table-cell?minimal=true)
|
||||
|
||||
TODO
|
||||
Don’t try to use tables without table cells. It won’t be fun.
|
||||
|
||||
## Installation
|
||||
::: warning Use with Table, TableRow and TableHeader
|
||||
|
||||
@@ -2,7 +2,23 @@
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-table-header)
|
||||
[](https://npmcharts.com/compare/@tiptap/extension-table-header?minimal=true)
|
||||
|
||||
TODO
|
||||
Table headers are actually. But come on, you want them, don’t you? If you don’t want them, update the `content` attribute of the [`TableRow`](/api/nodes/table-row) extension, like this:
|
||||
|
||||
```js
|
||||
// Table rows without table headers
|
||||
TableRow.extend({
|
||||
content: 'tableCell*',
|
||||
})
|
||||
```
|
||||
|
||||
This is the default, which allows table headers:
|
||||
|
||||
```js
|
||||
// Table rows with table headers (default)
|
||||
TableRow.extend({
|
||||
content: '(tableCell | tableHeader)*',
|
||||
})
|
||||
```
|
||||
|
||||
## Installation
|
||||
::: warning Use with Table, TableRow and TableCell
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-table-row)
|
||||
[](https://npmcharts.com/compare/@tiptap/extension-table-row?minimal=true)
|
||||
|
||||
TODO
|
||||
What’s a table without rows? Add this extension to make your tables usable.
|
||||
|
||||
## Installation
|
||||
::: warning Use with Table, TableHeader and TableCell
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-table)
|
||||
[](https://npmcharts.com/compare/@tiptap/extension-table?minimal=true)
|
||||
|
||||
TODO
|
||||
Nothing is as much fun as a good old HTML table. The `Table` extension enables you to add this holy grail of WYSIWYG editing to your editor.
|
||||
|
||||
Don’t forget to add a `spacer.gif`. (Just joking. If you don’t know what that is, don’t listen.)
|
||||
|
||||
## Installation
|
||||
::: warning Use with TableRow, TableHeader and TableCell
|
||||
|
||||
@@ -222,9 +222,7 @@ Node.create({
|
||||
```
|
||||
|
||||
#### Allow gap cursor
|
||||
TODO
|
||||
|
||||
> If it’s true, gap cursor are allowed everywhere in that node, if it’s false they are never allowed.
|
||||
The [`Gapcursor`](/api/extensions/gapcursor) extension registers a new schema attribute to control if gap cursors are allowed everywhere in that node.
|
||||
|
||||
```js
|
||||
Node.create({
|
||||
@@ -233,7 +231,7 @@ Node.create({
|
||||
```
|
||||
|
||||
#### Table roles
|
||||
TODO
|
||||
The [`Table`](/api/extensions/table) extension registers a new schema attribute to configure which role an Node has. Allowed values are `table`, `row`, `cell`, and `header_cell`.
|
||||
|
||||
```js
|
||||
Node.create({
|
||||
|
||||
Reference in New Issue
Block a user