mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
change table extension names to lowerCamelCase
This commit is contained in:
parent
719eda2e5b
commit
aef9d1ca41
@ -6,7 +6,7 @@ export interface TableCellOptions {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
export const TableCell = Node.create({
|
export const TableCell = Node.create({
|
||||||
name: 'table_cell',
|
name: 'tableCell',
|
||||||
|
|
||||||
defaultOptions: <TableCellOptions>{
|
defaultOptions: <TableCellOptions>{
|
||||||
HTMLAttributes: {},
|
HTMLAttributes: {},
|
||||||
|
@ -6,7 +6,7 @@ export interface TableHeaderOptions {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
export const TableHeader = Node.create({
|
export const TableHeader = Node.create({
|
||||||
name: 'table_header',
|
name: 'tableHeader',
|
||||||
|
|
||||||
defaultOptions: <TableHeaderOptions>{
|
defaultOptions: <TableHeaderOptions>{
|
||||||
HTMLAttributes: {},
|
HTMLAttributes: {},
|
||||||
|
@ -7,13 +7,13 @@ export interface TableRowOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const TableRow = Node.create({
|
export const TableRow = Node.create({
|
||||||
name: 'table_row',
|
name: 'tableRow',
|
||||||
|
|
||||||
defaultOptions: <TableRowOptions>{
|
defaultOptions: <TableRowOptions>{
|
||||||
HTMLAttributes: {},
|
HTMLAttributes: {},
|
||||||
},
|
},
|
||||||
|
|
||||||
content: '(table_cell | table_header)*',
|
content: '(tableCell | tableHeader)*',
|
||||||
|
|
||||||
tableRole: 'row',
|
tableRole: 'row',
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ export const Table = Node.create({
|
|||||||
resizable: false,
|
resizable: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
content: 'table_row+',
|
content: 'tableRow+',
|
||||||
|
|
||||||
tableRole: 'table',
|
tableRole: 'table',
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user