It is correct that enablerichtext shouldn't affect anything at all anymore (except migration script), but I don't see you checking here the value of defaulteditor instead.