You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our web application receives files in rtf format and use rft.js to convert rtf to html. Then we save the html version to OS clipboard with text/html format (using web clipboard API). So user could then paste the content to other OS native rich text editor (MS Word for example). We found all empty lines are lost during this process. Here is an example:
The HTML looks good in the browser but when copy the html from web browser and paste it to a rich text editor (like MS Word), the three empty lines in between are missing.
Can we just add <br /> tag in empty divs like below, so all empty lines are preserved when pasting back to OS native rich text editor.
Our web application receives files in rtf format and use
rft.js
to convert rtf to html. Then we save the html version to OS clipboard with text/html format (using web clipboard API). So user could then paste the content to other OS native rich text editor (MS Word for example). We found all empty lines are lost during this process. Here is an example:Converting rtf to html:
rtf:
rtf.js generated html:
The HTML looks good in the browser but when copy the html from web browser and paste it to a rich text editor (like MS Word), the three empty lines in between are missing.
Can we just add
<br />
tag in empty divs like below, so all empty lines are preserved when pasting back to OS native rich text editor.The text was updated successfully, but these errors were encountered: