• 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.

This one is difficult to explain without being able to demo because it is rather dynamic

Create a new topic or delete everything in an old.

Open it is Wysiwyg

Now write some text. What you write must all the time be the last line. And use the link button at the top menu to create a link. Just pick some topic to link to.

Write a line which will look like this

The first two example are OK. But when you make an entire line a link it goes wrong. I first noticed when I wanted to make a ---++ line a link (Quite common)

Now write a line that looks like this

Finally make a full line which is a link

What you get now are two lines.

The first is the link to point to defined as a link and with the visible text equal to the link.

On the line below you see your text line also as a link to the topic you selected.

If there is an empty line or any text below then it does not happen.

But when you write the line of text you write is the last line.

An additional nag is that it is almost impossible to get rid of the link on the last line. If you unlink - also the line above gets unlinked.

I looked at the code that gets generated in HTML mode and it seems there is a set of </P> that gets nested inside each other.

<P><A href="/dakar/bin/view/Sandbox/TestTopic3" class="generated">TestTopic3
<P>Hej med dig</P></A></P>

KJL

And again it is a problem only in Internet Explorer

KJL

I said that too early. If you make a last line as a link in Firefox and then press ENTER you get a new line which does not appear to be a link but this is the actual TML that gets saved.

[[TestTopic2][
fddasfdsafasf fdfdsfsdf]]
dsdasdasddsad<br />sadasdasdas<br />dasdasdasda

Why does it add breaks instead of a new line?

KJL

A newline is not the same as a line break. TWiki (HTML) ignores newlines.

CC

OK, I rewrote the link handling stuff to leverage the fixes in Kupu1.3.2 and it looks OK now.

SVN 7858

CC

ItemTemplate
Summary WYSIWYG has problem with links and last line
ReportedBy KennethLavrsen
Codebase

SVN Range Sun, 04 Dec 2005 build 7760
AppliesTo Extension
Component WysiwygPlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins 7858
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2005-12-14 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback