NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

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

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Extension TinyMCEPlugin, WysiwygPlugin  
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
 

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
WaitingFor
Checkins Foswikirev:15684 Foswikirev:15685 Foswikirev:15841 Foswikirev:15842
TargetRelease patch
ReleasedIn 1.1.6
CheckinsOnBranches Release01x01 trunk
trunkCheckins Foswikirev:15684 Foswikirev:15842
Release01x01Checkins Foswikirev:15685 Foswikirev:15841
Topic revision: r10 - 02 Dec 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads