You are here: Foswiki>Tasks Web>Item11912 (02 Dec 2012, GeorgeClark)Edit Attach

Item11912: hitting ctrl-i in tinymce appears to result in a 'funny square' char as well as italics.

Priority: Urgent
Current State: Closed
Released In: 1.1.6
Target Release: patch
Applies To: Extension
Component: TinyMCEPlugin, WysiwygPlugin
Branches: Release01x01 trunk
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
tested on trunk today

-- SvenDowideit - 31 May 2012

in fact, ctrl-b also has odd unicode terrors, but they're invisible - unless you..... hit shoe wiki text.

once bold then _slanted_ if you use the toolbar buttons, worse if you use ctrl-i/b

-- SvenDowideit - 31 May 2012

if you go from wrting tml and convert to html, its ok, so presumably, we're passing the char even on to the textarea when we should eat it.

-- SvenDowideit - 31 May 2012

I think this is a TinyMCE issue. I've tried Ctrl-b / Ctrl-i on the TinyMCE test site: and it inserts strange characters there as well. Not sure how to fix this. Need to open an upstream bug maybe? We could have Wysywyg remove those particular strings from the topics, but that might cause issues if someone really wants the string in the topic.

-- GeorgeClark - 01 Jun 2012

These are zero-width or invisible whitespace characters which are inserted to avoided cursor positioning problems on some browsers - for some reason in Foswiki cleanup : true fails to run TinyMCE's cleanup routine when it serializes the HTML

-- PaulHarvey - 16 Jun 2012

Confirmed. Still happening on Foswiki trunk with latest TMCE 3.5.7 installed. Inserts

-- GeorgeClark - 24 Oct 2012

Simple fix. But not sure if this really is right. Also, we should remove the "cleanup : true" option from TinyMCEPlugin/data/System/TinyMCEPlugin.txt as it is deprecated.
diff --git a/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/ b/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/
index 6d6f7d0..c41e050 100644
--- a/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/
+++ b/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/
@@ -197,6 +197,7 @@ sub convert {
     # $text is octets, encoded as per the $Foswiki::cfg{Site}{CharSet}
+    $text =~ s///g;
     return $text;

-- GeorgeClark - 24 Oct 2012

ItemTemplate edit

Summary hitting ctrl-i in tinymce appears to result in a 'funny square' char as well as italics.
ReportedBy SvenDowideit
Codebase 1.1.5, trunk
SVN Range
AppliesTo Extension
Component TinyMCEPlugin, WysiwygPlugin
Priority Urgent
CurrentState Closed
Checkins distro:0af5ddeaca00 distro:5a0d8241ee32 distro:a12787f388ed distro:d406f71dd989
TargetRelease patch
ReleasedIn 1.1.6
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:0af5ddeaca00 distro:d406f71dd989
Release01x01Checkins distro:5a0d8241ee32 distro:a12787f388ed
Topic revision: r10 - 02 Dec 2012, GeorgeClark - This page was cached on 14 Jan 2020 - 23:12.

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