I have asked this before, but it seems almost nobody is concerned about custom bbCodes or users who need extra effort to create visually appealing posts. When using custom bbCodes, if you select a text and apply the bbCode with a button, it’s not possible to achieve the same result as with the bold button, which does not introduce a line break.
I believe this change in behavior occurred with versions 2.1 or 2.2, likely due to the integration of third-party editors in XenForo.
The only solution I’ve found so far is to use regex to process the text while saving, removing the line breaks with str_replace or preg_replace.
Is there no other way to address this issue? The standard b (bold) bbCode doesn’t have this problem, but I haven’t been able to determine why. Does anyone have a practical idea on how to make custom bbCodes work without introducing unwanted line breaks?
I believe this change in behavior occurred with versions 2.1 or 2.2, likely due to the integration of third-party editors in XenForo.
The only solution I’ve found so far is to use regex to process the text while saving, removing the line breaks with str_replace or preg_replace.
Is there no other way to address this issue? The standard b (bold) bbCode doesn’t have this problem, but I haven’t been able to determine why. Does anyone have a practical idea on how to make custom bbCodes work without introducing unwanted line breaks?