Info
- 6 posts
- 4 voices
- Started 3 years ago by leoleoleo
- Latest reply from chrishajer
- This topic is not resolved
bbcode plugins URL not work
-
- Posted 3 years ago #
I installed BBcode Lite for bbPress and BBcode Buttons plugins in bbPress 1.0 Alpha. The URL button not work show the original code not URL.How to fix it? Thanks.
-
- Posted 3 years ago #
Same problem. I see the markups but doesn't work :(
-
- Posted 3 years ago #
@fernandot: this worked fine for me. I see the buttons and used them and it works just fine. See my test post. Firefox 3.0.5
-
- Posted 3 years ago #
No I think they mean specifically the URL button.
I see the problem too.
Investigating...Okay the problem is you either have to highlight text you want to make into a link, or finish the link with the close URL button again. And there has to be text within the [url] [/url]. I guess I need to make it less sensitive/work more intuitively.
-
- Posted 3 years ago #
I am changing the behavior to be more intuitive.
If they have highlighted text, it will create a link for them by just asking for the link.If there is no highlighted text, it will first ask for the link, then it will ask for the text for the link.
Replace this function by with it's one new line in BBcode-Buttons.js
function edInsertLink(i, defaultValue) { if (!defaultValue) {defaultValue = 'http://';} if (!edCheckOpenTags(i)) { var URL = prompt('Enter the URL' ,defaultValue); if (URL) {BBcodeButtons[i].tagStart = '[url=' + URL + ']'; edInsertTag(i);} if (edCheckOpenTags(i)) {var myValue = prompt('Enter the text for the link', ''); edInsertContent(myValue); edInsertTag(i);} } else {edInsertTag(i);} }Or download 0.0.8 shortly.
-
- Posted 3 years ago #
Ah, sorry. The URL button specifically. Missed that.
-
You must log in to post.