Undo/Redo in RichText/Markdown editor breaks when pasting text

I'm having trouble with the undo/redo history of the RTE in Markdown Mode:
The history breaks when passing text from the clipboard

How to reproduce in chrome (v. 98.0.4758.102):

  1. open your example:
    https://ej2.syncfusion.com/angular/demos/?_gl=1*1vighhv*_ga*MTQxMDI0NjYwOS4xNjI2MTgyODg0*_ga_WC4JKKPHH0*MTY0NjQwMTcyMy4xNi4xLjE2NDY0MDMxNTQuMA..&_ga=2.50570985.1307171726.1646310563-1410246609.1626182884#/material/rich-text-editor/markdown-editor-preview
  2. copy any word of the content in editor by double clicking and paste it somewhere else in the document several times (you may even wait some seconds between the paste)
  3. click the undo-button or [ctrl-z] once
    => all the pasted content dissapears (expected: only the last paste)
  4. click the redo-button or [ctrl-y]
    => nothing happens/some whitespace is added
In Firefox (v.97.0.1) it's even worse, there undo/redo does not seem to work at all after pasting.
The same effect (no undo) in chrome on the first example of your landing page for the markdown editor:

The regular RichtTextEditor (no Markdown mode) seems to work correctly - there I can do undo/redo for each single paste:

7 Replies

BS Buvana Sathasivam Syncfusion Team March 8, 2022 04:51 PM UTC

Hi Bernd, 

Greetings from Syncfusion support. 

By default, we have provided support for storing action intervals at 300 milliseconds for undoRedoManager using the undoRedoTimer property. We suggest increasing undoRedoTimer milliseconds to solve your problem. 


We are currently facing an issue with removing the most recently pasted content when pressing CTRL + Z. Could you please check the video below and confirm that it is the same problem you are facing? 


Regards, 
Buvana S 



BE Bernd March 11, 2022 02:44 PM UTC

Hi - it's not exactly the same problem in your video - I've made a short video myself to show the case, please see the attachment.


Attachment: 20220311_103817_651cb595.zip


BS Buvana Sathasivam Syncfusion Team March 14, 2022 04:31 PM UTC

Hi Bernd, 

We have considered the issue “Undo and redo not working using markdown editor” as a bug from our end and the fix for the issue will be included with our upcoming weekly patch release on April 5, 2022. 

You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link:  

Regards, 
Buvana S 



BS Buvana Sathasivam Syncfusion Team April 7, 2022 06:39 AM UTC

Due to the main release, we will include the fix in the weekly patch release, which is expected to be rolled out on April 12, 2022.



VJ Vinitha Jeyakumar Syncfusion Team April 13, 2022 12:55 PM UTC

We couldn't include the fix for the issue due to some complexity and it will be included with our upcoming patch release on 19th April 2022.



BS Buvana Sathasivam Syncfusion Team April 22, 2022 04:12 AM UTC

We are facing complexity in resolving the reported issue in our end. We will include the fix in the upcoming patch release which is expected to be rolled out on April 26, 2022.



BS Buvana Sathasivam Syncfusion Team April 28, 2022 06:48 AM UTC

We have included the fix for the issue "Undo and redo not working using markdown editor" with our package version 20.1.51. So, can you please upgrade your package to the latest to resolve the issue from your end.


Sample: https://stackblitz.com/edit/angular-zxcuvl-t9afbl?file=app.component.html


Release notes: https://ej2.syncfusion.com/documentation/release-notes/20.1.51/?type=all#richtexteditor


Loader.
Up arrow icon