Open SD-Gaming opened 1 week ago
i would like to take on this issue!! can i please be assigned to it? i will start on tackling it now
realized this could be the main problem in why context menu isn't pasting the formatting. isTrusted is being marked as false. could it be a permission problem? when i do ctrl+v isTrusted is marked as true. think im getting closer to solving the problem
It's happening for two reasons, both of these issues can be fixed but fixing either of them would solve this particular issue:
application/x-lexical-editor
format because it's not on the clipboard as a web custom formatIt's happening for two reasons, both of these issues can be fixed but fixing either of them would solve this particular issue:
- The async clipboard API, used by this paste command, does not support the lexical
application/x-lexical-editor
format because it's not on the clipboard as a web custom format- Lexical does not properly import the style of the text that it exported when parsing the HTML (it can access the sanitized text/plain and text/html formats on the clipboard and chooses the text/html data)
ok i will try each of these and give you update! ty so much for help
use PASTE_COMMAND command lost some style
Lexical version: 0.18.0
Steps To Reproduce
The current behavior
The new text is small
The expected behavior
new text is equal to the copied text font size
Impact of fix
It can reproduce every time.