When a user selects a message and applies CENTER BBCode, the editor adds CENTER TAG to each line. The message gets messed up when a user attempts to edit the messages afterwards. Suddenly there are bunch of CENTER TAG's flooting in the message expecially when it's a long message with several other BB Codes like images, quote, or code. Ideally (with most of the forum softwares) the CENTER tag should only be used one time. If the whole message is selected there should only be one at the beginning and one at the end of the message. Is there a solution for that? I appreciate the help.