Fixes #3284: add a password field editor for directive