If you have a <kbd>block, you can’t move the caret after it but before the next character.
The video below demonstrates the difficulty in adding/editing the first character after a <kbd> block.
The discussion highlights a bug in the New Composer where users cannot move the caret between a <kbd> block and the following character, a behavior described as expected in HTML contenteditable elements. renato explains that the caret position is treated as a single point inside and outside inline nodes, with a workaround seen in inline code formatting. supermathie expresses frustration with WYSIWYG editors, citing this issue as a reason for avoiding them, a sentiment echoed by seanblue who notes similar bugs across various editors.
If you have a <kbd>block, you can’t move the caret after it but before the next character.
The video below demonstrates the difficulty in adding/editing the first character after a <kbd> block.
Dit is het “verwachte” gedrag van een HTML-content-editable - binnen en buiten een inline-node wordt beschouwd als een enkele positie.
De inline code is een uitstekend voorbeeld van een alternatief: het toont een nepcursor op die ene positie, dus wanneer je met de pijltjestoetsen navigeert, is het dezelfde positie met verschillende markeringen, en visueel iets verschoven.
Ik geloof dat een ideale staat het ondersteunen van datzelfde gedrag voor andere soorten inhoud zou zijn.
… and this is why I don’t use WYSIWYG editors when possible ![]()
(this is a personal preference that goes back… 35 years all the way back to WordPerfect 5.1)
Exactly. They just never work quite right no matter how much they are refined. I’ve seen this type of bug in so many WYSIWYG editors.