marktext / muya

📄 Future markdown editor for web browser applications development
MIT License
615 stars 54 forks source link

[Feature] Add canUndo() & canRedo() function #151

Closed yfwz100 closed 6 months ago

yfwz100 commented 6 months ago


Why you want this feature?

Currently, I can't find any functions to judge if the editor can redo or undo. I can work around by judging the stack length, which is a private field.

Describe the feature request

Add canUndo() and canRedo() functions.

Additional context Add any other info about the feature request here.