TextCheckingType is a superset of Editor::TextCheckingOptionFlags. So we should unified both. Both use enums as bit flags. we should do this with struct and bit field.