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/TableHeader.js')
-rw-r--r--src/nodes/TableHeader.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nodes/TableHeader.js b/src/nodes/TableHeader.js
index 936ab26f2..b08f5c609 100644
--- a/src/nodes/TableHeader.js
+++ b/src/nodes/TableHeader.js
@@ -13,4 +13,16 @@ export default TableHeader.extend({
state.write(' |')
},
+ parseHTML() {
+ return [
+ { tag: 'table thead:empty ~ tbody :first-child th', priority: 80 },
+ { tag: 'table thead:empty ~ tbody :first-child td', priority: 80 },
+ { tag: 'table thead :first-child th', priority: 60 },
+ { tag: 'table thead :first-child td', priority: 60 },
+ { tag: 'table tbody :first-child th', priority: 60 },
+ { tag: 'table tbody :first-child td', priority: 60 },
+ { tag: 'table > :first-child > th', priority: 60 },
+ { tag: 'table > :first-child > td', priority: 60 },
+ ]
+ },
})