Open phanletrunghieu opened 3 years ago
When I pasted codes any formatable editor (example: VScode, Google Docs,...), the plugin showed codes with editor's theme.
Instead of using native pasting, I use get raw text in clipboard, then execCommand insertHTML.
insertHTML
Result:
VSCode:
Before:
After:
π€ This is a ...
Issue
When I pasted codes any formatable editor (example: VScode, Google Docs,...), the plugin showed codes with editor's theme.
π‘ Background and solution
Instead of using native pasting, I use get raw text in clipboard, then execCommand
insertHTML
.Result:
VSCode:
Before:
After:
π Changelog