You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					24 lines
				
				594 B
			
		
		
			
		
	
	
					24 lines
				
				594 B
			| 
											3 years ago
										 | import { Node, mergeAttributes } from '@tiptap/core'; | ||
|  | 
 | ||
|  | const TableRow = Node.create({ | ||
|  |     name: 'tableRow', | ||
|  |     addOptions() { | ||
|  |         return { | ||
|  |             HTMLAttributes: {}, | ||
|  |         }; | ||
|  |     }, | ||
|  |     content: '(tableCell | tableHeader)*', | ||
|  |     tableRole: 'row', | ||
|  |     parseHTML() { | ||
|  |         return [ | ||
|  |             { tag: 'tr' }, | ||
|  |         ]; | ||
|  |     }, | ||
|  |     renderHTML({ HTMLAttributes }) { | ||
|  |         return ['tr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]; | ||
|  |     }, | ||
|  | }); | ||
|  | 
 | ||
|  | export { TableRow, TableRow as default }; | ||
|  | //# sourceMappingURL=tiptap-extension-table-row.esm.js.map
 |