schooltool-developers team mailing list archive
-
schooltool-developers team
-
Mailing list archive
-
Message #00123
Re: Pasting from MSWord into fckEditor control
On Tue, Apr 6, 2010 at 2:50 PM, Alan Elkner <aelkner@xxxxxxxxx> wrote:
> We have an instance of a school (SLA) where there is a teacher that
> uses Microsoft Word and then cut and paste into the fckEditor. This
> results in data that has MS markup and various other annoying meta
> data that causes the PDF view to crash. We addressed this issue with
> a patch to their custom PDF view that filters out the corrupt data
> into something that can be printed.
>
> Tom found some rather informative links that address how to fix the
> paste problem which would involve changing our fckEditor widget to
> change the way the JavaScript classes are instantiated:
>
> http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
> (searching for Word yields various config settings)
> http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations
Basically, the two main options seem to be to add a "paste from Word"
button, or just change a setting to strip all formatting from all
pastes. I think the second one (stripping) is fine.
--Tom
References