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

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

Discussion in 'Resolved Bug Reports' started by rellect, Jun 8, 2013.

  1. rellect

    rellect Well-Known Member

    I tried to paste html code into my message using the Code bbcode, and all the tabs replaced with spaces.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I believe that is by design.
     
  3. Mike

    Mike XenForo Developer Staff Member

    This is by design - the old editor did the same thing.
     
  4. rellect

    rellect Well-Known Member

    I understand. May I ask what is the reason for this decision?
     
  5. Mike

    Mike XenForo Developer Staff Member

    Tabs would not be displayed as you think/wish - they'd just be shown as 1 space.
     
  6. rellect

    rellect Well-Known Member

    And this cannot be fixed?
     
  7. cclaerhout

    cclaerhout 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.
     
  8. rellect

    rellect Well-Known Member

    CKEditor doesn't suffer from this, so I believe this is fixable.
     
  9. cclaerhout

    cclaerhout Well-Known Member

    CKE adds 4 blank spaces, MCE4 adds 3 blank spaces (paste+tab key).
     
  10. rellect

    rellect Well-Known Member

    Weird, I could swear it showed real tabs the last time I tested it.
     
  11. ibnesayeed

    ibnesayeed Well-Known Member

    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. :)
     

Share This Page