4 ms·
Because different browsers insert the content in a different fashions. The reliable way to use contenteditable is to intercept keypresses and modify the inner H
by tacone 2y ago
Because different browsers insert the content in a different fashions. The reliable way to use contenteditable is to intercept keypresses and modify the inner HTML yourself, i.e. use contenteditable only to use the cursor affordance.