Hello:
Does anyone know how to paste as Word into the newest version of tinyMCE (3-3-9-3)? Thanks.
Hello: Does anyone know how to paste as Word into the newest version of
Share
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.
As of a number of versions ago, pasting from Word into a TinyMCE window is as easy as copying the Word document (control-c or x) and just pasting it into the TinyMCE window. It should then convert the office code into HTML.
EDIT:
In order to preserve your office stylings, you need to add paste_retain_style_properties to your TinyMCE.init declaration.
Example:
tinyMCE.init({
....
paste_retain_style_properties : "margin, padding, width, height, font-size, font-weight, font-family, color, text-align, ul, ol, li, text-decoration, border, background, float, display",
....
});