An interface between contentEditable and your UI