I have a custom field with a regex validation ^(?!\s*$).+. For some reason this does not work in the Experience Editor.
Is there a way I can disable the validation if the page is being edited in the Experience Editor? In the Content Editor it should work the same. Is there a way to handle it in Runtime without actually editing the Field value?
I am currently using Sitecore 9.