Closed (duplicate)
Project:
BUEditor
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2008 at 19:44 UTC
Updated:
24 Jul 2008 at 20:26 UTC
BBCode link values (url and text) from bbcode contrib module aren't parsed into the "Insert link" box when selected. I can create new link correctly, but if I try to select it and click the link button no text appears into Url and text boxes (screenshot attached). Maybe E.getSelection() doesn't work or there's a regex problem?
Defaults buttons behave correctly.
I'm writing some buttons for Wikitext (like Wikipedia ones, but funnier with BUeditor :-) ) modifying the BBcode buttons (due to similar syntaxes), but I've to fix this parsing on selection issue to proceed. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| bbcode_isntparsed.jpg | 24.28 KB | chirale |
Comments
Comment #1
ufku commentedFirstly, i mark this issue as support request because the bbcode contrib buttons are not part of the core.
Secondly, i'm not sure i get it right. You say that the default buttons work correctly. Excluding the link button?
As far as i tested, it works as expected. Your selection should start with [url... and end with ...url] having no extra characters.
Are you trying to modify the link button which has the below content?
Comment #2
chirale commentedThanks for the quick reply. Sorry, as "default buttons" I mean "core buttons" (for HTML) bundled with core. This issue affects bbcode links for bbcode contrib buttons. It seems there's a problem on selection.
Comment #3
ufku commentedIs the button code same as above?
I had no problem with it.
Comment #4
chirale commentedYes, it's the same. I even try to copy the code above on the button (it differs only for two whitespaces) but nothing changes. I try it on Firefox 3, on Konqueror 3.5.9, epiphany 2.22.2.
Buttons are loaded and code insertion is ok, but when I select an existing string text boxes aren't filled.
Comment #5
ufku commentedThis could be related: #248330: Value does not work in javascript
Try using 6.x-1.x-dev or the patch for the issue.
If that's the issue, please change the status of this issue to duplicate.
Comment #6
chirale commentedThanks, upgrading to 6.x-1.x-dev solve the issue to both BBCode and wikitext buttons.