jmadler / emoji-picker

Add a slick emoji selector to input fields and textareas on your website.
Other
1.31k stars 318 forks source link

Text copied from MS Word gets mangled- some words get joined. #43

Open lookog opened 7 years ago

lookog commented 7 years ago

On copying text from a MS Word document to an emoji-picker field, some spaces get removed leading to concatenated words. This happens on the demo page as well. For example: "This term X was coined in 1920 by the 9 year old nephew of American mathematician Edward Kasner." became: "This term X was coinedin 1920 by the 9 year old nephew of American mathematician Edward Kasner." It looks like the library is taking text and adding \n newline characters at certain places and then later doing a string join on newline while eliminating the spaces in between words. newlinedatacausingissue I was able to handle this by doing a one-line change.