• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5690: Chinese is fail on newest TinyMCEPlugin / WysiwygPlugin

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TinyMCEPlugin Urgent Closed   patch  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

I updated TinyMCEPlugin / WysiwygPlugin to 16767 (5/6) / 16836 (5/28) from 4.2.0 default version.

When I added chinese word in my topic and save, save is ok but all my topic content is cleared!

I created a test topic in LitterTray: TinyMCEPluginTest but got different test result as below:

1.jpg

2.jpg

When I click "Back" of my browser, I got:

3.jpg

-- TWiki:Main/MagicYang - 07 Jun 2008

If you can give me the example characters you used (paste them in this topic using raw edit) I will check. But if your TWiki is configured for UTF8 it ought to work - I tested Chinese characters before the last checkin, with the help of TWiki:Main.KwangErnLiew. Note that this site is not configured for UTF-8 and creating test topics in LitterTray won't achieve anything.

-- TWiki:Main.CrawfordCurrie - 08 Jun 2008

My installation setting are:

$TWiki::cfg{Site}{Locale} = 'en_US.UTF-8';
$TWiki::cfg{Site}{LocaleRegexes} = 1;
$TWiki::cfg{Site}{CharSet} = 'UTF-8';

and any chinese characters will cause the problem. Here is a sample for you: 中文

BTW, Chinese words in TinyMCEPlugin is ok in my default 4.2.0 installation/configuration but fail when I upgrade TinyMCEPlugin / WysiwygPlugin.

-- TWiki:Main.MagicYang - 09 Jun 2008

Note that in rev 4 the form of this bug item disappeared. I restored it back.

KJL

When the error (save to blank page) occurred, I found some error messages in Apache error log:

[Thu Jun 12 19:36:53 2008] [error] [client 10.44.153.72] Use of uninitialized value in substitution (s///) at /teamspace/twiki/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML.pm line 118., referer: http://f8 ats02.tsmc.com.tw/twiki/bin/edit/QMS/TestNotify?t=1213270490
[Thu Jun 12 19:36:53 2008] [error] [client 10.44.153.72] Use of uninitialized value in subroutine en try at /teamspace/twiki/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML.pm line 121., referer: http://f8ats 02.tsmc.com.tw/twiki/bin/edit/QMS/TestNotify?t=1213270490

-- TWiki:Main.MagicYang - 12 Jun 2008

I have Chinese functioning correctly again for normal WYSIWYG edits, but it has highlighted a curious issue. When I save from pickaxe mode, I get a Wide character in print error - but not all the time. If I paste in characters selected from the Wikipedia Chinese page, it crashes, but if I paste in the same characters from a previous WYSIWYG edit in TWiki, it doesn't. Obviously there is some browser sensitivity to the encoding that I don't fully understand. Working on it as and when I get a chance.

-- TWiki:Main.CrawfordCurrie - 12 Jun 2008

Do you have a chance to get a whole saved blank page like me?

-- TWiki:Main.MagicYang - 13 Jun 2008

I want to rollback to default 4.2.0 version (TinyMCEPlugin / WysiwygPlugin to 16268 / 16174) to avoid Chinese problem. The "save to totally blank page" will not happen in this version pair but have another problem: %ACC......% will become �C......% when I get into TinyMCE editor!

-- TWiki:Main.MagicYang - 13 Jun 2008

The "saved blank page" is due to a problem in the core code which causes any empty topic to be saved if a Wide character in print error occurs. There is nothing i can do about that, except to try to avoid that situation.

-- TWiki:Main.CrawfordCurrie - 17 Jun 2008

Took a while to track the last problem down, and it turned out to be a core bug (Item5710.

-- CrawfordCurrie - 17 Jun 2008

ItemTemplate
Summary Chinese is fail on newest TinyMCEPlugin / WysiwygPlugin
ReportedBy TWiki:Main.MagicYang
Codebase 4.2.0
SVN Range TWiki-5.0.0, Sun, 01 Jun 2008, build 16865
AppliesTo Extension
Component TinyMCEPlugin
Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:16890 TWikirev:16898 TWikirev:16899
TargetRelease patch
ReleasedIn

Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2008-08-04 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback