Fix exiting from text edit mode
Fix exiting from text edit mode

[#77905270]

It mainly fixes issues related to undo functionality.

concord-consortium/drawing-tool,concord-consortium/drawing-tool,concord-consortium/drawing-tool