Skip Menu |

This queue is for tickets about the Kwiki-Wikiwyg CPAN distribution.

Report information
The Basics
Id: 21237
Status: new
Priority: 0/
Queue: Kwiki-Wikiwyg

People
Owner: Nobody in particular
Requestors: WMCKEE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.13
Fixed in: (no value)



Subject: Multiple mailto: prefixes bug
Hi Ingy, I've been looking into the problem with WikiWyg putting multiple mailto: prefixes in front of email addresses. This behavior can be replicated by placing an email address on a page and then going back and forth between Wikitext and Preview modes. As you move back and forth, you'll see that WikiWyg converts the email address into a link ([mailto:you@you.com you@you.com]) then converts that into a string (mailto: mailto:you@you.com). The more you do this, the more extraneous mailto: prefixes get added. This behavior makes me think the error lies in how the WikiWyg library is converting wikitext into HTML. I see where you register the wikiwyg_wikitext_to_html action. However, I really don't understand all the Spoon::Formatter interactions so am not sure how to follow the thread back to the root of the bug. BTW, I tested in a standard wiki. It will convert an email address to a mailto: link but when you go to edit, there is no mailto: prefix. Cheers, William