Hello Jun,

A while ago I initiated a thread about extending/upgrading Xinha:
        http://hippocms-dev.markmail.org/message/snzmsx3fu775ba75?q=xinha
That last mail summarizes my findings.
Nothing related to Word pasting, but it might give a (partial) answer to your 
last question.

If you have any more questions feel free,

Reinier


[email protected] wrote:
Hi all,
Any insights on the issue?
Thanks
Jun
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ni, Jun
(FindLaw)
Sent: Wednesday, February 04, 2009 3:03 PM
To: [email protected]
Subject: [HippoCMS-dev] Rich Text Editor issues

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


********************************************
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


--

Reinier van den Born
HintTech B.V.

T: +31(0)15 268 2573
F: +31(0)15 268 2567
M: +31(0)6 494 171 36

ATTENTION: WE HAVE MOVED!!
Delftechpark 37i | 2628 XH Delft | www.hinttech.com

HintTech is a specialist in eBusiness Technology ( .Net, Java platform, Tridion 
) and IT-Projects.
Chamber of Commerce The Hague nr. 27242282 | Sales Tax nr. NL8062.16.396.B01
begin:vcard
fn:Reinier van den Born
n:van den Born;Reinier
org:HintTech B.V.
adr:;;Delfttechpark 37i ;Delft;;2628XH;Netherlands
email;internet:[email protected]
tel;work:+31-15-268 2573
tel;fax:+31-15-268 2567
tel;cell:+31-6 494 171 36
note;quoted-printable:KvK Den Haag nr. 27242282 | BTW nr. NL8062.16.396.B01=0D=0A=
	=0D=0A=
	HintTech levert specialisten op het gebied van softwareontwikkeling (.NET=
	en Java), projectmanagement, informatiebeveiliging en business consulting=
	.=0D=0A=
	=0D=0A=
	
url:www.hinttech.com
version:2.1
end:vcard

********************************************
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

Reply via email to