add readonly functionallity to custom_date and editor.