mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-19 14:44:39 +01:00
Due to standard link CSS, the cursor at the end of the link looks the same as the cursor immediately after the link, and the cursor at the start of the link looks the same as the cursor immediately before the link. However, these are semantically different locations. I've had several problems with Slate misinterpreting these locations, and had trouble showing these problems to others using the standard examples, because the only example of an editable inline element is the link. To fix this, I've added a box-shadow to the link when it's selected. It should now be clear to the user whether the cursor is inside or outside the element.