XF 2.3 bbcode and /n

Robert9

Well-known member
I have added an easy bbcode like:

[test
replaced with <div class=test ...

I have added a button.

In my message form field I press the button; the result is:

test][/test

Now I copy a text between the two bbcodes.
The result is

test]
text
[/test

But the result should be:

test]text[/test

What can I do to have the result that I want? I don't like to correct this problem two times every time I use the bbcode.
 
Assuming you have truncated the code just for brevity here and have actually complete all the code

<div class=test

Should be

<div class="test"

Note that it is much better to quote the actual full codes you have used.

On the other hand if you really have used this: [test then it is wrong.

When enteringin the code tag field of bbcode custom editor it should not include the square bracket, ie just test

Screenshot 2024-07-17 at 11.23.23.webp

and the replacement <div class=test ... should be something like <div class="test">{text}</div>
 
There is no need to talk about such things, please. b][/b is short for the bbCode B; there is no button for icode here, and i am always to lazy to write it.

You can see the problem, when doing this:

add bbCode bb with all the needed things to create it.
add css .bb to make bold
add button

Now add a line of text two times, like:

1. text to test with bbcode b

2. text to test with bbcode bb


Now mark text1 and click on b

Now mark text2 and click on bb

The result is

b]Text[/b

and

bb]
Text
[/bb


If you use such a bbCode 50 times a day, you have to correct the line break 100 times a day, top and bottom. I really hate it.
 
Hmm, for me, this is a serious problem.

So everybody knows how to add a new bbCode without a line break after and before the bbCodes?
Or nobody adds own bbCodes?
Or people just don't care if there is a line break or not?
 
Back
Top Bottom