Since this is a little more complex (By default an element is contenteditable if it's immediate parent has the attribute not set to false), should I put a helper function somewhere others can use? can/view/elements perhaps?