Fix "Undefined variable: contentEditor" after save action