Hi all.
I use the last component 1.5.5.4 for Joomla 1.5 (i think with code of ckeditor 3.5.2 ).
I only can paste from Microsoft Word (2003 SP3) with options "pasteFromWordRemoveStyles" and "pasteFromWordRemoveFontStyles" both enable or both disable.
Viceversa (only one enable) i get an error message 'It was not possible to clean up the pasted data due to an internal error' and the text is pasted directed (all dirty code html from Word).
With both options disable: the text imported is too "dirty".
With both options enable (DEFAULT in CKEditor): the text imported is too "clean" ... the attribute "font-variant: small-caps;" is removed !!!
* At bottom an example of my text imported.
I would have in my text only:
- style character (bold, italic, small-caps, underline, etc...)
- style name of paragraph, that is the attribute class like MsoNormal, MsoFootnoteText, MsoFootnoteReference, MyPersonalStyleForSummary, etc... (the name of styles used in Word)
Re: Bug in pasteFromWord with CKEditor for Joomla ?
Hi,
have you tested your Word text in http://ckeditor.com/demo ?
Can you check if there are results as you expect ?
Please give me this info it will be very helpful.
Re: Bug in pasteFromWord with CKEditor for Joomla ?
Sorry mkesicki, I have been very busy.
I tried on http://ckeditor.com/demo and I got the same error.
In the demo i cannot set the copy options and I did not get any alert message box, but the imported text is too clean and without the "small-caps".
Every html element is without class attribute (style name of word) and font-variant is removed.
I hope this helps.
Many thanks,
Marco
Re: Bug in pasteFromWord with CKEditor for Joomla ?
Hi,
yes this is really helpful information. AS you see this issue is not related with extension for Joomla, but with editor itself.
EDIT:
For you special needs please look at http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.pasteFromWordCleanupFile. Than you can write your own function to clean up text from word. With this way you can customize CKEditor for your needs.
Hope this helps you.