3 ms·
contentEditable is a terrible hack and difficult to use when you only want a subset of features. You need to blacklist a bunch of events like pasting, keyboard
by underwater 14y ago
contentEditable is a terrible hack and difficult to use when you only want a subset of features. You need to blacklist a bunch of events like pasting, keyboard formatting (e.g. ctrl+i, drag and drop and inserting new lines.
- jorangreef 14y agoWould be great if browsers could provide a "black and white" contentEditable that just lets the user edit the textContent in an HTML element.