ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
27.52k stars 2.29k forks source link

[Bug]: Table update exception when Chinese input method is used in safari #5584

Open DoubleHeer opened 2 months ago

DoubleHeer commented 2 months ago

Affected Packages

Doc demo

Version(s)

2.6.6

Bug Description

https://github.com/user-attachments/assets/895785e3-8ff3-4eed-888d-39d489c0af1f

When I used the official demo to test the table function, I found that using the Chinese input method to enter text in safari would cause the table to increase, and the input content was abnormal。

Browser Used

Safari

Code Example URL

https://tiptap.dev/docs/editor/extensions/nodes/table

Expected Behavior

I expect that the input content in Chinese input method can be displayed normally

Additional Context (Optional)

image

Rows are automatically inserted

Dependency Updates

GreedyWhale commented 1 month ago

I have the same problem but not using the example here, is it possible to get the code for this example? I would like to refer to it.

GreedyWhale commented 1 month ago

I have the same problem but not using the example here, is it possible to get the code for this example? I would like to refer to it.

After my test, ios 14, 18 will not have this problem, and as long as the table is inserted without using the header will not have this problem, for example

editor.chain().focus().insertTable({ rows: 4, cols: 4, withHeaderRow: false }).run()