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/TableHeadRow.js')
-rw-r--r--src/nodes/TableHeadRow.js26
1 files changed, 7 insertions, 19 deletions
diff --git a/src/nodes/TableHeadRow.js b/src/nodes/TableHeadRow.js
index 8845ae462..ea13c9b2e 100644
--- a/src/nodes/TableHeadRow.js
+++ b/src/nodes/TableHeadRow.js
@@ -1,25 +1,8 @@
-import { Node, mergeAttributes } from '@tiptap/core'
+import TableRow from './TableRow'
-export default Node.create({
+export default TableRow.extend({
name: 'tableHeadRow',
content: 'tableHeader*',
- tableRole: 'row',
-
- addOptions() {
- return {
- HTMLAttributes: {},
- }
- },
-
- parseHTML() {
- return [
- { tag: 'tr' },
- ]
- },
-
- renderHTML({ HTMLAttributes }) {
- return ['tr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]
- },
toMarkdown(state, node) {
state.write('|')
@@ -33,4 +16,9 @@ export default Node.create({
state.ensureNewLine()
},
+ parseHTML() {
+ return [
+ { tag: 'tr', priority: 70 },
+ ]
+ },
})