Get the position of any mark of the given type touching the given position.
Basically searches outwards from the position until it finds a text node without the given mark type.
Get the position of any mark of the given type touching the given position.
Basically searches outwards from the position until it finds a text node without the given mark type.