Skip to main content
Topic: SCeditor bug handling bbcode inside code tags (Read 4202 times) previous topic - next topic - Topic derived from BBC Parsing
0 Members and 1 Guest are viewing this topic.

SCeditor bug handling bbcode inside code tags

I never understood why BBC has to be like that:

Code: [Select]
[b][i]text[/i][/b]

...and can't be like that:

Code: [Select]
[b][i]text[/b][i][i][/i]


Can't the editor (or what's so ever is responsible for this) look for the ending code, wherever it stands? I as human can think like this:

"Oh, there's a [b], let's keep this in mind. Oh, there's a [i] know, let's keep this in mind too. Oh, now [b] is closed with an [/b], but [i] is still open, so the text should now be only italic. Oh, there's the [/i], back to normal text now."

Can't the editor?

Would be much easier for users working with BBC if there could be more flexibility.  O:-)
[/b][/i]

Re: SCeditor bug handling bbcode inside code tags

Reply #1

Wahhhh!! What happened!?!?  :o  My edit has corrupted my post!  :o  >:(

Click on edit of my post please, it's funny! Most of the text shown above is missing then. Grrrr!

Re: SCeditor bug handling bbcode inside code tags

Reply #2

Looks like SCEditor doesn't like that much unmatched codes. :-\
Use the quick edit for the moment. I can't guess right now if the problem is due to a bug in the editor or a problem with some code we added.
Bugs creator.
Features destroyer.
Template killer.

Re: SCeditor bug handling bbcode inside code tags

Reply #3

QuoteClick on edit of my post please, it's funny! Most of the text shown above is missing then. Grrrr!
 This was already present before BBC Parsing. This happens from time to time even in SMF 2.0.11. I think that this is due to Firefox.

Re: SCeditor bug handling bbcode inside code tags

Reply #4

I didn't wrote any unmatched BBCode outside the code block. I don't know why the editor has problems with my post and inserted the lot of [i] in my code block.  :o  Before my edit my post was okay, after that it wasn't.  :o  I thought all inside the code block will not be interpreted?

I don't have a quick edit button here. I only can click "more" "modify".  :(

Quote from: wintstar – This was already present before BBC Parsing. This happens from time to time even in SMF 2.0.11. I think that this is due to Firefox.

I used IE for this post.  ;)

 

Re: SCeditor bug handling bbcode inside code tags

Reply #5

With Internet Explorer I'm hardly walk. Firefox is just a guess on my part.
Regards Stephan

Re: SCeditor bug handling bbcode inside code tags

Reply #6

Quote from: Jorin – I thought all inside the code block will not be interpreted?
Bugs do exist. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: SCeditor bug handling bbcode inside code tags

Reply #7

Reported at:
https://github.com/samclarke/SCEditor/issues/493
Bugs creator.
Features destroyer.
Template killer.

Re: SCeditor bug handling bbcode inside code tags

Reply #8

Looks like he wasn't happy about the report, it basically fell into the ocean
~ SimplePortal Support Team ~

Re: SCeditor bug handling bbcode inside code tags

Reply #9

I can't get it to do it either, so not sure whats up ....

Re: SCeditor bug handling bbcode inside code tags

Reply #10

I hope @Jorin can help then ;)
~ SimplePortal Support Team ~

Re: SCeditor bug handling bbcode inside code tags

Reply #11

Do you really want me to try to reproduce it?  ;)