As designed New editor doesn't seem to allow tabs (indent)

rellect

Well-known member
I tried to paste html code into my message using the Code bbcode, and all the tabs replaced with spaces.
 

Mike

XenForo developer
Staff member
Tabs would not be displayed as you think/wish - they'd just be shown as 1 space.
 

cclaerhout

Well-known member
I understand. May I ask what is the reason for this decision?
Rich text editors (wysiwyg) are using html. Tabs doesn't exist in html. They can only be emulated. Check on the web, you will find many things about it on this.
 

rellect

Well-known member
Rich text editors (wysiwyg) are using html. Tabs doesn't exist in html. They can only be emulated. Check on the web, you will find many things about it on this.
CKEditor doesn't suffer from this, so I believe this is fixable.
 

ibnesayeed

Well-known member
Weird, I could swear it showed real tabs the last time I tested it.
If the output is in <pre> tag or white-space property is styled as pre then it might be the case. See this reference. I am not very sure though that it will display tabs as tabs or convert it to a single space.

You can also indent the text on tabs to emulate this effect. :)
 
Top