Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodes/TableHead.js')
-rw-r--r--src/nodes/TableHead.js32
1 files changed, 2 insertions, 30 deletions
diff --git a/src/nodes/TableHead.js b/src/nodes/TableHead.js
index e5acdc269..fd845fa7d 100644
--- a/src/nodes/TableHead.js
+++ b/src/nodes/TableHead.js
@@ -1,33 +1,5 @@
import { Node, mergeAttributes } from '@tiptap/core'
-
-const tableHeadRow = Node.create({
- name: 'tableHeadRow',
- content: 'tableHeader*',
- tableRole: 'headRow',
-
- addOptions() {
- return {
- HTMLAttributes: {},
- }
- },
-
- parseHTML() {
- return [
- { tag: 'tr' },
- ]
- },
-
- renderHTML({ HTMLAttributes }) {
- return ['tr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]
- },
-
- toMarkdown(state, node) {
- state.write('|')
- state.renderInline(node)
- state.ensureNewLine()
- },
-
-})
+import TableHeadRow from './TableHeadRow'
export default Node.create({
name: 'tableHead',
@@ -42,7 +14,7 @@ export default Node.create({
addExtensions() {
return [
- tableHeadRow,
+ TableHeadRow,
]
},