remove unused flatDoc
show existing values properly for textarea and contenteditable