[opencms-dev] Opencms6: Cleanup HTML is rather drastic?
Frans Postma
fpostma at xs4all.nl
Sat Mar 19 16:00:58 CET 2005
Never thought I would hear that famous bug/feature line again :-)
It only does the 'drastic' cleaning when I press the CleanUp button, e.g. FONT tags survive normal saving and editing. I'll leave
the button alone then, best to use tidy in some more forgiving mode for me :)
But thanks for clearing that up, had me wondering.
Frans
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of
> Alexander Kandzior
> Sent: zaterdag 19 maart 2005 14:40
> To: 'The OpenCms mailing list'
> Subject: RE: [opencms-dev] Opencms6: Cleanup HTML is rather drastic?
>
> Frans,
>
> It's not a bug, it's a feature.
>
> The "drastic" behaviour is intended. Actually this is a set of Jtidy
> settings that are required to fully clean up HTML code
> copy/pasted from MS
> Word. For this purpose (cleaning up from MS Word) the code works well.
>
> We have been thinking about adding a selection to the cleanup button,
> allowing the user to select between "mild", "medium" and
> "drastic" cleanup
> (or something like this). However this feature is currently
> not being worked
> on since other matters are more pressing.
>
> Best Regards,
> Alex.
>
> Alexander Kandzior
> Alkacon Software - The OpenCms Experts
> http://www.alkacon.com
>
>
>
> > -----Original Message-----
> > From: opencms-dev-bounces at opencms.org
> > [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Frans Postma
> > Sent: Saturday, March 19, 2005 10:54 AM
> > To: 'The OpenCms mailing list'
> > Subject: RE: [opencms-dev] Opencms6: Cleanup HTML is rather drastic?
> >
> > Yes, I used the CleanUp button while in source-mode. You can
> > see the font codes vanish ;-) I'll try to find where/what
> > removes those tags. (prefer to file a bugreport with some
> > sort of solution pointer)
> >
> > > -----Original Message-----
> > > From: opencms-dev-bounces at opencms.org
> > > [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Bernd
> > Wolfsegger
> > > Sent: zaterdag 19 maart 2005 5:29
> > > To: The OpenCms mailing list
> > > Subject: Re: [opencms-dev] Opencms6: Cleanup HTML is
> rather drastic?
> > >
> > > Hi,
> > >
> > > did you press the "togglesourcecode" button afterwards?
> > > Because in the WYSIWYG mode you see no tags.
> > >
> > > Sorry, just a question :)
> > >
> > > But you are right, because even font tags are partly changed.
> > > So when I had a font tag with color and class attribute,
> some time
> > > later only the size attribut was left ..., I think
> > afterwards adding
> > > some text in front of the tag.
> > >
> > > Regards, Bernd
> > >
> > > On Saturday 19 March 2005 02:15, Frans Postma wrote:
> > > > Clean-up html cleans up a bit too much in opencms in my
> > opinion; try
> > > > pasting this into your editor:
> > > >
> > > > <FONT color=#00cc66>bla</FONT>
> > > > <span style="color: #00cc66">bla</span>
> > > >
> > > > Now press the Clean-up-HTML button and you will be left with:
> > > >
> > > > bla bla
> > > >
> > > > I checked using the jtidy.jar and it doesn't appear to be
> > > the cause of this
> > > > destructive behaviour. But the remaining regexps used to
> > > clean those word
> > > > o: tags can't be it either. Any ideas if this is actually
> > expected
> > > > behaviour??
> > > >
> > > > (does seem weird considering that the WYSIWYG editor uses
> > > FONT tags itself
> > > > for coloring text, shouldn't that be span/style eventually?)
> > > >
> > > > I don't want to file a bug in bugzilla if this is
> > actually desired
> > > > behaviour poorly understood by me ;-)
> > > >
> > > > Frans
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > This mail is send to you from the opencms-dev mailing
> > list To change
> > > > your list options, or to unsubscribe from the
> > > list, please visit
> > > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > >
> > >
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev mailing list
> > To change
> > > your list options, or to unsubscribe from the list, please visit
> > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > >
> >
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list,
> > please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list