Item5695: TinyMCE / WYSIWYG iso 8859-1 not working with umlauts in links
Priority: Enhancement
Current State: Being Worked On
Released In: 4.1.2
Target Release: n/a
Applies To: Extension
Component: WYSIWYG
Branches:
There are still problems with iso-8859-1 setups and umlauts under
TinyMCE ( trunk version, 10 Jun ).
When adding a link which includes umlauts, saving, everythign works. Next time you edit the topic, the link is not shown correctly, so instead of
[[Ümlautlink]]
it shows a underlined Ümlautlink, which stands for "this is an external link". Looking at the link-destination, it points to
http://domain.tld/bin/edit/Web/Ümlautlink. I guess edit is from things like "get current script action" and then expanded. I think that there is a problem matching internal links when there are umlauts, maybe the topic is not found because of the umlaut beeing wrong endoded
TWiki:Main.MayerEugen
I do not see this when using current SVN 4.2 code instead of 4.1.2.
Maybe this is more a core bug which is now fixed?
--
KennethLavrsen - 09 Jun 2008
If its a core bug, i just smell that the
RegExp had been corrected, which is testing for internal links. Maybe in 4.1.2 its not using locales like it happend in the subscription plugin. would be great to get a hint, i could start debugging then
--
TWiki:Main.MayerEugen - 10 Jun 2008
Later: If it would be a core-bug, i would suggest that links created in raw-edit-mode would not work also. But it seems only to happen in WYSIWYG-mode, so iam a bit confused
--
TWiki:Main.MayerEugen - 10 Jun 2008
When you say "links created in WYSIWYG-mode" what do you actually mean?
You mean
WikiWords written as
WikiWords or do you mean using the user interface for adding a link? And when you add this link what format do you then get? [[link][text]] or [
[link only]].
Not shown correctly means that the link was saved in a strange mode. What is the raw text result?
-- TWiki:Main.KennethLavrsen - 10 Jun 2008
Ok i tried some things out and got some new details for reproducing this bug.
When starting editing a topic and adding a intern-link with a umlaut in the "URL" part, you have then 2 possibilities:
-- TWiki:Main.MayerEugen - 10 Jun 2008
Lavr to anser your question: So if we are in case one, creating a link with the tinyMCE and saving, link will work on viewing the topic and the raw code of the link is for a topic name TestÄndern ( strange ) :
<span class="WYSIWYG_LINK"><a href="TestÄndern">Test</a>
-- TWiki:Main.MayerEugen - 10 Jun 2008
Ok last but not least, this problem has nothing to do with tinyMCE. Also if you dont use TinyMCE for formfields, you wont need this patch in general, but the patch wont break the normal behaviour.
Otherwise, if you use form fields with WYSIWYG, this patch provides the needed support.
For me, cant see a reason not to take that one in the normal WYSIWYG release.
-- TWiki:Main.MayerEugen - 10 Jun 2008
I have tested the patch.
I have not seen damage when running TWiki like normal.
With the editor_selector : "(twikiTextarea|twikiEditFormTextAreaField)",
setting in the TMCE plugin topic I do indeed get a WYSIWYG field in text areas. But when I save an empty line is prefixed the first line. There is no way you can remove it in Wysiwyg but you can remove it afterwards in Raw Edit.
If you save from pickaxe mode the space is not added.
This blank line is added in both IE and FF.
I also ran the unit tests and 3 of them fails now.
-- TWiki:Main.KennethLavrsen - 10 Jun 2008