Fixed handling of span editing before TableElement