Not a bug  BBCode inside CODE

James

Well-known member
Code:
[SIZE=10pt][FONT=Consolas]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>[/FONT][/SIZE]
[SIZE=10pt][FONT=Consolas]
[/FONT][/SIZE]
[SIZE=10pt]When using CODE BBCodes, BBCode is automatically inserted inside the code tags? (see above).[/SIZE]
 
Code:
[B]Is it true?[/B] Yes

[plain][b]Let's see what happens if we wrap this in plain text...[/b][/plain] Nothing...

I can reproduce it :)
 
Code:
Just another random test
EDIT: Seems to work fine here... yet when I put the above code into CODE BBCodes, it automatically added the BBCodes ([SIZE][FONT]) itself.
My two cents on this is that it's the indenting or possible conflictions inside the code itself.
 
Code:
[SIZE=10pt][FONT=Consolas]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>
[/FONT][/SIZE]

Nop it's not fixed :P
 
Rich (BB code):
[SIZE=10pt]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>[/SIZE]
[SIZE=10pt]
[/SIZE]
[SIZE=10pt][/size]
 
Code:
[/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE]
[FONT=Consolas][FONT=Consolas][FONT=Consolas][SIZE=10pt][FONT=Consolas]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>
[/CODE]
[/FONT][/SIZE][/CODE][/FONT][/FONT][/FONT]

Still fails for me :([/CODE][/SIZE][/SIZE][/CODE][/FONT]
Now it's putting my reply in code tags ;o odd[/CODE][/SIZE][/FONT][/SIZE]
 
Rich (BB code):
[/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE]
[SIZE=10pt]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>[/SIZE]
[SIZE=10pt][/SIZE][/CODE][/SIZE][/SIZE][/CODE][/FONT]

Still fails for me :([/CODE][/SIZE][/SIZE][/CODE][/FONT]
Now it's putting my reply in code tags ;o odd[/CODE][/SIZE][/FONT][/SIZE]
[/code]
[/SIZE][/FONT][/SIZE]
 
Rich (BB code):
[/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE][/SIZE][/FONT][/SIZE]
[SIZE=10pt]<script type="text/javascript">      var _gaq = _gaq || [];    _gaq.push(['_setAccount', 'UA-10855523-4']);    _gaq.push(['_trackPageview']);     (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);    })();   </script>[/SIZE]
[SIZE=10pt][/SIZE][/CODE][/SIZE][/SIZE][/CODE][/FONT]

Still fails for me :([/CODE][/SIZE][/SIZE][/CODE][/FONT]
Now it's putting my reply in code tags ;o odd[/CODE][/SIZE][/FONT][/SIZE]
[/SIZE][/FONT][/SIZE]
[/code]
 
I was just about to report this again, than I noticed there was already a topic like this.

I got a questions for the devs, because I think this is the WYSIWIG editor's fault.
Or is it xenForo?
 
Yes, that's exactly what it is.

The only way around it is to paste as unformatted text or use the plain text editor.
 
Or select the code and click the top-left button (Remove Formatting) after you've pasted it.
I always forget about that
redface.png
 
Top Bottom