vForums Support > vForums :: Report a Bug :: Resolved Bugs :: > WYSIWYG UBBC Error

WYSIWYG UBBC Error - Posted By dog199200 (dog199200) on 10th Apr 09 at 4:58pm
URL: Here...
Browser: FireFox


OK as requested here is the bug report.

basically when the error happens is when you make a thread, and then edit it and add more to it... for example:

[u*]text one[/u*]

then you edit it and add in the bold like so:

[b*]bold text[/b*]

then what would happen is the bold text would not only come out bold, but underlines as well.

then if you edit it again, anything under that will be bold and underlines, plus any other effects you added, so on and so forth. I made a new post in the test board to see if i was able to duplicate the error which i was.

Re: WYSIWYG UBBC Error - Posted By Ross (admin) on 10th Apr 09 at 5:32pm
Based on your description, I'm going to say that this is where you're misunderstanding the editor. When you go into modify a post, the WYSIWYG editor is applied to the current message. So the message you see in front of you is bold (or underlined etc.). You are then clicking on the end of the existing text and entering line breaks / new content. When you do this, you have clicked inside the existing bold tags, so anything else entered will be bold too until you turn the bold effect off (via either the button or the keyboard shortcut, "Ctrl" + "B"). This is intentional behaviour. If you want to edit the UBBC code which makes up a post then there is a "UBBC" button which opens up a plain text version. Although to be honest, I'm not sure why that would be needed for simple text effects? {Unsure}

Edit: What I had done is added a plain blank line to the end of the message when modifying. So if you click on this blank line (rather than the formatted text) it will be plain.

Re: WYSIWYG UBBC Error - Posted By dog199200 (dog199200) on 10th Apr 09 at 6:30pm
ok, over all the bug would of been that the system wasn't checking to see if the effect had been closed, instead it tried to continue the effect if it was closed of not, which if it was closed it shouldn't continue the function, whether assigned by the WYSIWYG system, or by ubbc. So essentially i guess its not really a bug, just a flaw.

Edit: but ok yea the blank line thing fixed the biggest problem of how it was setup, thanks, but i think there still will be a problem if they try to add on, instead of indenting down. {Tongue Out} yes i know i may sound like i'm being picky, but someone will report it as a bug sooner or later.


Edit 2: Error Number two, if you use [size*] tags, when you go to modify the thread the text looks like dots, but looks normal if you save it, yes it very minor, but a bug never the less. An example of this is my latest in the test thread, if you modify my thread you'll see what i mean.

Re: WYSIWYG UBBC Error - Posted By Ross (admin) on 10th Apr 09 at 7:12pm
Posted By dog199200 on 10th Apr 09 at 6:30pm
 
ok, over all the bug would of been that the system wasn't checking to see if the effect had been closed, instead it tried to continue the effect if it was closed of not, which if it was closed it shouldn't continue the function, whether assigned by the WYSIWYG system, or by ubbc. So essentially i guess its not really a bug, just a flaw.

Edit: but ok yea the blank line thing fixed the biggest problem of how it was setup, thanks, but i think there still will be a problem if they try to add on, instead of indenting down. {Tongue Out} yes i know i may sound like i'm being picky, but someone will report it as a bug sooner or later.


Unfortunately I disagree. How the editor works is exactly the same as any major Rich Text Editor (such as Word or Open Office). Here's an example to try and show what is happening.

"[b]This is a bold line of text. When you click at the end of this line your cursor would get placed here, before the clsoing tag |[/b]"


"[b]This is another line of bold text. When you click at the very end of the line your cursor ends up within the bold tags still.|
This is line two of the bold text. See how it would only have one set of bold tags still.[/b]"

Re: WYSIWYG UBBC Error - Posted By Nick (nickb) on 12th Apr 09 at 3:13am
I think I know what's happening as well.

Like if you bold something then edit the post, the cursor is after the bold text, then you press enter to get to the next line, it's still bold because you did not cancel the bold effect. So when you put underline it will also become bold.

I have a hypercam program on which I can show you what I am talking about in real time. (if that made sense {Tongue Out} )

Re: WYSIWYG UBBC Error - Posted By Ross (admin) on 12th Apr 09 at 9:21pm
 
I think I know what's happening as well.

Like if you bold something then edit the post, the cursor is after the bold text, then you press enter to get to the next line, it's still bold because you did not cancel the bold effect. So when you put underline it will also become bold.

I have a hypercam program on which I can show you what I am talking about in real time. (if that made sense {Tongue Out} )


That is exactly what is happening {Smile}

Re: WYSIWYG UBBC Error - Posted By Nick (nickb) on 13th Apr 09 at 2:10am
Yeah that happened to me too. Back in 06-07 when I started computer classes for writing, it was Basic computers 1 and 2, and we learned to type. (Which I knew how to type fast anyways.) but in Word '03 I would always do that. I always got frustrated by it because the whole sentence ended up as bold or underlined. But I learned a neat trick to! Highlight the whole sentence and press the CTRL + B or U and it would fix it.