You are here: Foswiki>Tasks Web>Item5961 (08 Jan 2009, KwangErnLiew)Edit Attach

Item5961: WysiwygPlugin and TWiki's odd idea of needing a space before *'s causes user surprise.

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.0
Target Release: patch
Applies To: Extension
Component: WysiwygPlugin
Branches:
Reported By: TWiki:Main.SvenDowideit
Waiting For:
Last Change By: KwangErnLiew
If I write Some prose, and want to bold the 'n' in one, what happens?

If you select the 'n', then hit B, when you save, you get spaces between the 'o', 'n', 'e'.

This is clearly not what the user intended.

-- TWiki:Main/SvenDowideit - 26 Aug 2008

worse, if you hand hack in the html 'b' bold tag, next time around, TWiki removes it.

I was talking to Harlan the other day, and I wondered if we should write some code to convert all literal html to custom %TML% tags (that Wysiwyg can then round trip convert successfully - due to its knowledge..), so that they can be protected abstracted and managed automatically.

  • Set STARTB =
  • Set ENDB =

If I write Some prose, and want to bold the 'n' in one, what happens?

-- TWiki:Main.SvenDowideit - 26 Aug 2008

As you have discovered, TML makes for a pretty poor text processor.

However the WYSIWYG converter should not put spaces into one. It's not supposed to convert to TML unless it has a suitably positioned space.

Confirmed.

With regards to the hacking HTML tags to TML; so you want to extend TML to be a superset of HTML? Do you really want to do that? How do you plan to pass parameters to these tags?

-- CrawfordCurrie - 27 Aug 2008

I don't want to pass parameters, and I don't want to make it an important functionality - more a way to aggregate the literal html tag usages, abstract them, and help us developers and our users to identify which are common and should do with more support.

-- TWiki:Main.SvenDowideit - 31 Aug 2008

Fixed on trunk and 04x02 release branch. Any unusual effects with emphasis, let me know; it's all a bit delicate.

-- CrawfordCurrie - 22 Oct 2008

ItemTemplate edit

Summary WysiwygPlugin and TWiki's odd idea of needing a space before *'s causes user surprise.
ReportedBy TWiki:Main.SvenDowideit
Codebase trunk
SVN Range TWiki-5.0.0, Mon, 18 Aug 2008, build 17431
AppliesTo Extension
Component WysiwygPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins TWikirev:17679 TWikirev:17680
TargetRelease patch
ReleasedIn 1.0.0
Topic revision: r8 - 08 Jan 2009, KwangErnLiew
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