[Rich text editor] Add error tracking for rich text editor