I've been using the Redactor Wysiwyg editor on a job post form. However, though their website mentions super cleaning on paste from word, I get a lot of extra empty <p>
and <br />
, even though in the word markup there is a single paragraph break. Any ideas what might be causing that? Anybody else has the same problem?
Thanks! Maria
You need to set paragraphy
and linebreaks
settings like this :
$('#redactor').redactor({
linebreaks: true,
paragraphy: false
});
in my case, some text or paragraphs was disappearing when I paste from Word to Redactor 10 in Internet Explorer. There the solution worked for me:
$('#redactor').redactor({
pasteCallback: function(html) {
html = html.replace("<font>", ""); // Fix Word to IE
html = html.replace("</font>", ""); // Fix Word to IE
return html;
},
});
When I remove <font>
tag generated by Microsoft Word before the paste, everything work fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With