Cursor changing heights over widget created spans

I don’t know. I’ve never tried building a table editor inside CodeMirror. Generating table elements would require you to use separate mini-editors inside the cells, since CodeMirror doesn’t support wrapping text inside the editor like that.