I am setting a Pilcrow character (does not matter) as after element to a paragraph using this css
body.p:after {
content:'\00b6'; // the used char or image does not matter
}
When i click after the after element inside the body the cursor/caret gets placed at the end of the paragraph as wished. But when i click on the after element no cursor is shown and typing in some letters does not work.
Is there a workaround for this?
Here is my solution to the problem.
OnClick i check if the offset of the click event equals the maximum textnodelength in order to decide if the caret needs to get set or not.
Goal here was to set the cursor to the end of the actual paragraph when clicked on the after element.