I can open a word document, then select all, copy, and paste into WebHtmlEditor. The good news: it does what you'd want - i.e., you get the WordHtml version your document, with much the same formatting. But the bad news: it seems to take *virtually forever* to render within the HTMLeditor. Like, minutes for a one-page word document.
I realize the Word's version of html is a little strange, that it has a lot of extra stuff, etc. But geez, is it really that complicated? BTW, MSIE manages to render the same HTML with little ado.
Any ideas?
-Scott
Sorry, I wrote this code for an IE only Intranet environment so I never had to make it firefox friendly.
I believe the problem is where the text is retrieved from the clipboard and converted to text only. You'll have to do a little research into how firefox does this differently from IE. A quick google search should give you an answer. Search on window.clipboardData and getData
Good Luck.
Amy
But this code does not work on Firefox. Did you try to resolve it on Firefox? Thanks,
Put this code in the init event of your editor.
Alan,
Where do you put the above block of code? Is this code triggered on certain event?
Thanks,
I also only allow users to paste in plain text.
What I also did is I went through the ig_htmlEditor.js file and changed all the spots where they were using String.replace to use regular expressions instead of strings. I would specifically look at the CleanWord function. Of course you do this at your own risk.
This had a huge impact. My users paste in 20 to 30 page documents from WordPerfect not Word but the same methodology applies. After I made this change there was a noticeable improvement in performance.
I hope that helps you out.