Use EntityHelperTrait on the CKEditor forms which adds validation to the first step of the form if an invalid entity is selected.