Undo and Redo paste function

10 posts, 0 answers
  1. Nisarg
    Nisarg avatar
    18 posts
    Member since:
    Jan 2015

    Posted 29 Jan 2015 Link to this post

    Hi there,

    I have custom tool buttons on my editor, and those buttons paste some text inside the editor on click (using the paste function). I cannot undo or redo these paste operations. If I manually type some thing, then undo and redo works on that, but not on the pasted text.

    What would be a good solution to this?

    Thank you in advance,
    Nisarg Patel 
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 02 Feb 2015 Link to this post

    Hello Nisarg,

    Indeed, the paste method did not enter the undo/redo stack -- this bug has been fixed for the next internal build, which should be out by the end of the week.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. David
    David avatar
    4 posts
    Member since:
    Oct 2013

    Posted 15 Jun in reply to Alex Gyoshev Link to this post

    Seems it still doesn't work.

    When I paste some text to editor and call Undo (via browser menu, or CTRL+Z shortcut) it doesn't remove pasted text. Instead this it try to remove previous manually typed text in editor.

     

    Tested in Chrome 51 and Firefox 47 on your demo page:

    http://demos.telerik.com/kendo-ui/editor/index

  5. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 16 Jun Link to this post

    Hello David,

    It appears to be working on our side. Can you please post the exact steps you perform in the demo?

    Regards,
    Alex Gyoshev
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  6. David
    David avatar
    4 posts
    Member since:
    Oct 2013

    Posted 16 Jun in reply to Alex Gyoshev Link to this post

    Watch this video:

    http://sendvid.com/a5f1jhtj

  7. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 20 Jun Link to this post

    Hello David,

    Thank you for the recorded video. The problem is caused by the use of the the browser context menu -- its undo does not go through the editor undo / redo stack. I have logged this for further investigation. At this time, you can use Ctrl+Z for undo and Ctrl+Y for redo.

    Regards,
    Alex Gyoshev
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  8. David
    David avatar
    4 posts
    Member since:
    Oct 2013

    Posted 20 Jun in reply to Alex Gyoshev Link to this post

    Hello Alex,

    problem is not caused by using browser context menu. I use this method only in video for better clarity when I call undo command.

    Same results, when I use shortcut CTRL+Z or browser menu (Edit -> Undo) or right click context menu as you can see in video.

    Set focus on Editor doesn't help too.

    I think that pasted text is not inserted in Editor history stack. Instead, there is only empty "nothing-do" history step.

  9. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 22 Jun Link to this post

    Hello David,

    I could not reproduce the problem when using Ctrl+Z -- with the same steps, retraced. Is there anything different when using Ctrl+Z?

    Regards,
    Alex Gyoshev
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  10. David
    David avatar
    4 posts
    Member since:
    Oct 2013

    Posted 30 Jun in reply to Alex Gyoshev Link to this post

    Hello Alex,

    I do some test with colleagues. Problem occurs only on Mac users with Chrome or Firefox. For Linux and Windows users undo command works fine.

    Can you reproduce problem on Mac with OS X El Capitan?

  11. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 04 Jul Link to this post

    Hello David,

    It appears that the undo / redo functionality is currently triggered by Ctrl+Z / Y, which is not intuitive for Mac OS users, who are accustomed to Cmd + Z / Y. Apart from that, I'm afraid that we could not reproduce the issue in the latest demos, using Chrome and Firefox on Mac OS.

    Regards,
    Alex Gyoshev
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready