MyBB Community Forums

Full Version: Edit align tag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i need some help in MyCodes.
Generally for align we use this code "align=center"
But its make problem to type via mobile so i think to make it easy like "
My Text
How to do this ...?
Quote:Regex:
\[(left|center|right|justify)\](.*?)\[/\1\]
Replacement:
<div style="text-align: $1;">$2</div>
(ref)
Its not working i added that codes in mycde but its not working....

Its not working i added that codes in mycde but its not working....
Make sure the Regex doesn't contain any space
I already checked theres no space but its not working....

Please give me working codes
Works for me:

[Image: FNxv2j3.png]