Using a contenteditable div
area, I am having issues (currently only tested in Chrome) where the cursor cannot be placed before the first letter of an inline styling element, when the CSS psuedo-selector ::before
is used to add content before the "tag".
The use-case is this technique is used to display/style custom tags within a content editor. Each tag is indexed and this index is displayed to the left of the tag text.
Standalone example: http://codepen.io/TheFoot/pen/pydqQb
Thanks in advance..
EDIT: As @Sonny pointed out, if the embedded tag is display: block
the problem goes away, but this breaks the need to highlight/style inline sections of text.