King Moonraiser
Joined: 28 May 2005
Posts: 2477
Location: The Land of Misfit Boys
|
| Posted: Thu Jul 07, 2005 7:33 pm Post subject: Mystery of the extra BBCode end tag revealed. |
|
|
I got a PM a while back alerting me to a possible bug in the forums. Sometimes a BBCode end tag is mysteriously added to the end of a post.
I finally figured out how it happens. If you click on a BBCode option, let's say bold, and then manually delete the tag, the JavaScript function still thinks the open tag is still there and tries to close it when you hit Submit.
I think the reson this happens is because PHPBB doesn't insert the opening code at the cursor's location. Instead, it stupidly sticks it at the end of the message. I'm going to work on fixing this behavior.
An easier way to apply BBCodes is to highlight the text and then click on the BBCode button. I know that works in Firefox. YMMV in other browsers.
UPDATE: I fixed the stupid behavior, but it still inserts an end tag if you manually delete the beginning tag. |
|