TinyMCE issue in pasting the content from MSword-2010. No line break is seen if pasted directly

StackOverflow https://stackoverflow.com/questions/15926879

Question

I am using tinyMCE for pasting description on front end of the site. Issue I am having is - when I try to paste the content taken out directly from MS Word 2010 I am not able to see the same line spacing as on word document.

I have uploaded 3 images showing the document and content when pasted into the editor and the content displayed after getting post.

wordDocument-2010-content

ContentInsideEditor

ContentAfterPost

Était-ce utile?

La solution

Problem here is you would need to set the editor width to exactly the same width of a Word 2010 page. In Word you may change the margins whcih will lead to another problem. Another point is the font. You will need to apply the same font and same font-size in the editor (you may use the config param content_css for this).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top