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

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

Вопрос

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

Это было полезно?

Решение

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).

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top