Editable: validate function now includes a contenteditable element parameter