Item1662: WysiwygPlugin corrupts nop'd nbsp

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: WysiwygPlugin
Branches:
Reported By: MichaelTempest
Waiting For:
Last Change By: MichaelTempest
Item5103 mentions escaping non-breaking spaces so that they appear as   in TMCE. I thought - what if someone did that because they wanted   to appear when the page is rendered normally? I got a surprise:

TML Foswiki renders as TMCE renders as
&nbsp<nop>; &nbsp; <nop>;

Verbatim:
&nbsp<nop>;

Literal:
&nbsp;

-- MichaelTempest - 24 May 2009

It seems that browsers "helpfully" decide that &nbsp is just "bad HTML" and interprets it as a non-breaking-space entity.

The solution is to move the <nop>. For example:

Verbatim:
&<nop>nbsp;

Literal:
&nbsp;

Closing without action

-- MichaelTempest - 19 Jun 2010

ItemTemplate edit

Summary WysiwygPlugin corrupts nop'd nbsp
ReportedBy MichaelTempest
Codebase trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component WysiwygPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r3 - 19 Jun 2010, MichaelTempest
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