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

Fixed Admin CP: Template edtior - oddities with tabbing and undoing etc.

Chris D

XenForo developer
Staff member
Loving the new template editor support for tabs and various other shortcuts.

I have however, a few times been tripped up by undo/redo.

It seems as though if you make a change, use tab to indent a block of text, make another change and then attempt to undo, you cannot undo further back than when you did the tab.

That's pretty much reproducible all the time.

What's less common, but more serious, is I've see undo / redo only correct partially what it should have done.

This has left me with entire blocks of template code disappearing, incomplete bits of code reappearing and then be unable to do the mess using undo/redo forcing a reload of the template potentially losing changes... Luckily I can now Ctrl+S every few seconds ;)


Well-known member
Also editor doesn't know how to handle } symbol in CSS templates. It should remove tabs or spaces when it's typed on a new line.


XenForo developer
Staff member
I've had to do some manual selection management to sort this, but that does also give us some better control IMO, so this should be fixed for beta 2.