schooltool-developers team mailing list archive
-
schooltool-developers team
-
Mailing list archive
-
Message #00128
Re: Pasting from MSWord into fckEditor control
For now are you going to change the widget to convert to plain text
for installation at SLA? It wouldn't be a bad idea to get that much
into the release.
On Tue, Apr 6, 2010 at 4:27 PM, Justas Sadzevicius <justas@xxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Alan Elkner wrote:
>> I know that would work, but I'm not sure Windows users will like
>> losing their Windows markup. Isn't pasteFromWordCleanupFile available
>> to clean up the data?
>
> Alan, I'll check if there is some quick setting. If no easy solution
> comes up, I'd say stripping the markup when pasting looks compelling for
> now; and we can/should check how to put the "full" word paste back in
> once we upgrade the FCK Editor - after the Lucid release.
>
> Sounds right?
>
> Justas
>
>> On Tue, Apr 6, 2010 at 3:48 PM, Tom Hoffman <tom.hoffman@xxxxxxxxx> wrote:
>>> On Tue, Apr 6, 2010 at 3:46 PM, Brian Sutherland
>>> <brian@xxxxxxxxxxxxxxxxx> wrote:
>>>> On Tue, Apr 06, 2010 at 03:03:50PM -0400, Tom Hoffman wrote:
>>>>> 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.
>>>> Just as a data point, we seem to have good results with this
>>>> setting:
>>>>
>>>> FCKConfig.ForcePasteAsPlainText = true ;
>>> Sounds good to me.
>>>
>>> --Tom
>>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~schooltool-developers
>> Post to : schooltool-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~schooltool-developers
>> More help : https://help.launchpad.net/ListHelp
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAku7mSoACgkQaCT+W0+kcjRh2QCfWCoqZjSA+bR4M/IUnE8Bt9y5
> f4cAn3DiIFy1MddPkhJYYnhZUhbQ9yPE
> =U8sZ
> -----END PGP SIGNATURE-----
>
References