• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

As designed Rich Editor & Simple Editor Content Issue

yavuz

Well-known member
#1
Hi,

I have recenly changed my forum to XenForo from vBulletin and have this little problem.

When I use the center BB Code wrap the thread content with it, to center all the thread content, it adds hundreds of center BB Codes to every line when I change back to the simple editor. Maybe the screenshots would better explain

This is my original code. Just used one Center TAG:



This is when I swich to the rich editor and switch back to the simple editor:



Hope this is not what is supposed to be because it adds hundrets of junk code which messes the thread content up.
 

Brogan

XenForo moderator
Staff member
#2
This is a known issue and has been discussed on several threads.
I'm not sure if it has been posted in bug reports before, I'll see if I can find an earlier thread.

I suspect though that it is due to line breaks, which results in the BB Code being applied to each separate line.
 

yavuz

Well-known member
#3
This is a known issue and has been discussed on several threads.
I'm not sure if it has been posted in bug reports before, I'll see if I can find an earlier thread.
I wasn't aware Brogan. I've looked under bugs but couldn't find one.
Thank You.
 

Mike

XenForo developer
Staff member
#4
That's not strictly a bug - the exact code used by the WYSIWYG editor will not necessarily match hand-written code, though the goal is to be visually the same.

If you look at the HTML that a lot of browsers generate in rich text editors, you will see it reflects a centering of each line (paragraph).
 

yavuz

Well-known member
#5
I didn't have this issue with vb's editor when I swiched the editors. Because of that I thought this was some kind of a bug. But this is really "bugging" me and my members a lot. It would be much easier If only the code would remain as it was...
 

yavuz

Well-known member
#8
It does, however it doesn't work with Chrome and Safari iirc.
That's true. It works with IE and firefox and with the latest version of Chrome but didn't until recently. I hope this can be fixed but seems the the developers are ok with the way it it is now.
 

Luke F

Well-known member
#9
That's true. It works with IE and firefox and with the latest version of Chrome but didn't until recently. I hope this can be fixed but seems the the developers are ok with the way it it is now.
It uses contentEditable, which has limited browser support. Personally I would like XenForo to use it too.