Cross-browser contenteditable element behavior