You are here: Foswiki>Tasks Web>Item12322 (05 Jul 2015, GeorgeClark)Edit Attach

Item12322: WysiwygPlugin should remove useless spans etc

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: WysiwygPlugin
Branches: master
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
I'm using an inline html wysiwyg editor that uses the html as we generate it

the topic div contains an extra bit

<span id="TopicEnd"></span>

i recon it'd be worth noticing it and killing it

-- SvenDowideit - 30 Dec 2012

Defer to 1.2.1.

-- GeorgeClark - 01 Jun 2014

I can't accept deferral of this - I have to be able to properly clean the html, for other reasons.

The solution is to support ignoring spans that only have an ID, and I have that coded. the trick is to identify useless tags, and to do that we need to examine the attributes, and ignore any tags that only contain attributes that we don't want to keep - for example, the id attribute on span, or maybe the face attribute on font - otherwise those attributes block clean conversion of HTML to TML.

-- CrawfordCurrie - 20 Jan 2015

 
Topic revision: r5 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy