Only set contenteditable when surface is editable.