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
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:
http://www.tinymce.com/tryit/full.php 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 
http://trunk.foswiki.org/Sandbox/TestWysiwyg?raw=on
--
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/HTML2TML.pm b/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm
index 6d6f7d0..c41e050 100644
--- a/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm
+++ b/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm
@@ -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