I have a text area in my web application. My users can copy text from wordpad
and paste it in textarea.
They want the same text font of the wordpad document to be appear in textarea too. How can we achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can retain some formatting by using a rich text editor like tinyMCE ( http://www.tinymce.com/ ). But you’re pretty much limited to to sans-serif (arial-like) and serif (times-like) when it comes to fonts. Unless you use webfonts. But even with webfonts you’re limited to the fonts you define, and as webfonts often has slightly different names than the desktop fonts (e.g. Meta MT becomes Meta Web) you will not get the correct font when pasting from WordPad