@@ -31,14 +31,19 @@ describe('Table', () => {
3131 expectDocument ( tiptap . state . doc ,
3232 table (
3333 thead (
34- th ( { textAlign : 'center' } , 'heading' ) ,
35- th ( { textAlign : 'right' } , 'heading 2' ) ,
36- th ( 'heading 3' ) ,
34+ th ( { dir : 'ltr' , textAlign : 'center' } , 'heading' ) ,
35+ th ( { dir : 'ltr' , textAlign : 'right' } , 'heading 2' ) ,
36+ th ( { dir : 'ltr' } , 'heading 3' ) ,
3737 ) ,
3838 tr (
39- td ( { textAlign : 'center' } , 'center' ) ,
40- td ( { textAlign : 'right' } , 'right' ) ,
41- td ( 'left cell ' , br ( { syntax : 'html' } ) , 'with line break' ) ,
39+ td ( { dir : 'ltr' , textAlign : 'center' } , 'center' ) ,
40+ td ( { dir : 'ltr' , textAlign : 'right' } , 'right' ) ,
41+ td (
42+ { dir : 'ltr' } ,
43+ 'left cell ' ,
44+ br ( { syntax : 'html' } ) ,
45+ 'with line break' ,
46+ ) ,
4247 ) ,
4348 ) ,
4449 )
@@ -50,14 +55,19 @@ describe('Table', () => {
5055 expectDocument ( tiptap . state . doc ,
5156 table (
5257 thead (
53- th ( { textAlign : 'center' } , 'heading' ) ,
54- th ( { textAlign : 'right' } , 'heading 2' ) ,
55- th ( 'heading 3' ) ,
58+ th ( { dir : 'ltr' , textAlign : 'center' } , 'heading' ) ,
59+ th ( { dir : 'ltr' , textAlign : 'right' } , 'heading 2' ) ,
60+ th ( { dir : 'ltr' } , 'heading 3' ) ,
5661 ) ,
5762 tr (
58- td ( { textAlign : 'center' } , 'center' ) ,
59- td ( { textAlign : 'right' } , 'right' ) ,
60- td ( 'left cell ' , br ( { syntax : ' ' } ) , 'with line break' ) ,
63+ td ( { dir : 'ltr' , textAlign : 'center' } , 'center' ) ,
64+ td ( { dir : 'ltr' , textAlign : 'right' } , 'right' ) ,
65+ td (
66+ { dir : 'ltr' } ,
67+ 'left cell ' ,
68+ br ( { syntax : ' ' } ) ,
69+ 'with line break' ,
70+ ) ,
6171 ) ,
6272 ) ,
6373 )
0 commit comments