docstatus transition check, permissions #478
link editor in editor.js