Add allow_blank option for rich editor

Fixes issue #2808