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

Fixed 1.4 redactor ctrl z quirky

Discussion in 'Resolved Bug Reports' started by dethfire, Aug 7, 2014.

  1. dethfire

    dethfire Well-Known Member

    Mess around typing and the doing Ctrl + z. Sometimes it remove the last word. Sometimes the last letter and sometimes nothing.
    eberkund likes this.
  2. Moshe1010

    Moshe1010 Well-Known Member

    I've noticed this in 1.3 as well. Sometimes it would delete an entire phrase, sometimes just the styling that was done before that and sometimes a single letter (Using Chrome 36 and OS X).
  3. Chris D

    Chris D XenForo Developer Staff Member

    I have to say I have also noticed some unpredictable results with undo and redo.

    It's sometimes a little over zealous as to what it considers to be your last action; to the point where it can delete entire sentences.

    A behaviour similar to an application such as Microsoft Word or similar would be good.

    I've been seeing this since the 1.2 branch of code, but I didn't think of it as a big problem.
    Luke F and Martok like this.
  4. Karelke

    Karelke Active Member

    Ctrl + Z (undo) and Ctrl + Y (redo) are indeed not working as expected. I'm experiencing this odd behavior in both XenForo 1.3 and 1.4.
  5. Rob

    Rob Well-Known Member

    I can confirm this also in chrome on ubuntu, plus chrome on android.
  6. Karelke

    Karelke Active Member

    (Ubuntu + Chrome here as well)
  7. Teapot

    Teapot Well-Known Member

    Can confirm on every browser and OS I've ever used XF with; this has happened since 1.2.
  8. Mike

    Mike XenForo Developer Staff Member

    Please give some specific examples of what you're doing (buttons clicked, actions taken), what undo does and what you expect undo to do.
  9. Karelke

    Karelke Active Member

    In the quick reply:

    1) Enter the text "Test Test"


    2) Hit 2x enter, write another text "Test"


    3) Select the last paragraph with the mouse


    4) Hit the delete button to remove the text


    5) Hit CTRL + Z to restore the deleted text => it doesn't work, and the cursor automatically moves 1 paragraph upwards.

    Claudio, AndyB and dethfire like this.
  10. Claudio

    Claudio Well-Known Member

    The same on Windows 8.1 with latest Chrome stable version
  11. Mike

    Mike XenForo Developer Staff Member

    I've made some tweaks for this in 1.4. Hopefully it will be more predictable, though I would say that it errs on the side of recording more undo states than fewer.
    dethfire, Karelke and Chris D like this.
  12. Chris D

    Chris D XenForo Developer Staff Member

    Did you roll out some of the changes yesterday? I thought I had noticed an improvement, then.

    I've just done a rudimentary test and it does seem to be quite a bit better :)

    I can't say for sure, but I think I noticed a similar over zealous behaviour in the template editor in the Admin CP but I haven't used it for a while so I appreciate that's pretty vague...
  13. Mike

    Mike XenForo Developer Staff Member

    Just rolled out today.

    Undo in the template editor is browser controlled.

Share This Page