Hi guys, I am trying out features of the rich text editor in hippo cms. I found that pasting contents copied from Word leads to different results in different browsers.
1. ctrl+v or using the paste option in IE: all text formatting are gone. The numbered or unnumbered lists look right, but the source html shows that it treats the "bullet" as a special character, eg: My bullets <br />* Option 1 <br />* Option 2 2. ctrl+v on FireFox: kept all the formatting, plus lots of style and meta data tags from word. The clean MSWord tag button only cleans out the ms styles, but not the metadata junk. The good news is that the bullets are presented in the right html tags 3. paste option in firefox: stripped out all the formatting and MSWord junk, bullet is treated as a special character. All similar to IE except that it also stripped out all the <p> tags. What I am looking for from the rich text editor is: 1. clean out the meta data tags from word, doesn't matter if it's done at the time of paste or after clicking the killword button 2. translate the bullets and numbered lists to proper html tags. 3. preserve some of the basic formatting (eg, bold, italic, paragraphs) I did some research on xinha, and found that there is a config killWordOnPaste. So I grep'ed killWordOnPaste in hippo-cms, and updated the value to false in all occurrences. It doesn't seem to make much difference though. Does anyone know where the magic button is? In case you are interested, I did same tests on Xinha's latest demo editor(http://xinha.raimundmeyer.de/x_examples/ext_example.html). By default the killWordOnPaste is false, so I can copy & paste my word content to Xinha in IE. It works slightly better than what we have in hippocms right now: It still kept the ms meta junk in firefox, but the bullets are translated to <ul> in IE properly. So I guess the other question for you is: what's the best approach to upgrade xinha in hippocms? Thanks Jun ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
