I am having a problem understanding when the storedMarkes will be removed from the editor state. My use case is that I want to unit test that my mark will be correctly applied when having a cursor selection. I am using the toggleMark command and everything works but I am wondering when I remove my mark the storedMarks is an array of length 0 instead of undefined like it usually is when there are no storedMarks. Is this a bug?
Toggle mark on
Toggle mark off