init table, table-row and table-cell
This commit is contained in:
14
packages/extension-table-cell/README.md
Normal file
14
packages/extension-table-cell/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# @tiptap/extension-table-cell
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-table-cell)
|
||||
[](https://npmcharts.com/compare/tiptap?minimal=true)
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-table-cell)
|
||||
[](https://github.com/sponsors/ueberdosis)
|
||||
|
||||
## Introduction
|
||||
tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*.
|
||||
|
||||
## Offical Documentation
|
||||
Documentation can be found on the [tiptap website](https://tiptap.dev).
|
||||
|
||||
## License
|
||||
tiptap is open-sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap-next/blob/main/LICENSE.md).
|
||||
27
packages/extension-table-cell/package.json
Normal file
27
packages/extension-table-cell/package.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@tiptap/extension-table-cell",
|
||||
"description": "table cell extension for tiptap",
|
||||
"version": "2.0.0-alpha.5",
|
||||
"homepage": "https://tiptap.dev",
|
||||
"keywords": [
|
||||
"tiptap",
|
||||
"tiptap extension"
|
||||
],
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ueberdosis"
|
||||
},
|
||||
"main": "dist/tiptap-extension-table-cell.cjs.js",
|
||||
"umd": "dist/tiptap-extension-table-cell.umd.js",
|
||||
"module": "dist/tiptap-extension-table-cell.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-table-cell.bundle.umd.min.js",
|
||||
"types": "dist/packages/extension-table-cell/src/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@tiptap/core": "^2.0.0-alpha.6"
|
||||
}
|
||||
}
|
||||
5
packages/extension-table-cell/src/index.ts
Normal file
5
packages/extension-table-cell/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { TableCell } from './table-cell'
|
||||
|
||||
export * from './table-cell'
|
||||
|
||||
export default TableCell
|
||||
11
packages/extension-table-cell/src/table-cell.ts
Normal file
11
packages/extension-table-cell/src/table-cell.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Node } from '@tiptap/core'
|
||||
|
||||
export const TableCell = Node.create({
|
||||
name: 'tableCell',
|
||||
})
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
TableCell: typeof TableCell,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user