# Expanding the selection to the active mark?

**URL:** <https://discuss.prosemirror.net/t/expanding-the-selection-to-the-active-mark/478>\
**Category:** Uncategorized\
**Created:** [November 4, 2016, 10:24am UTC](https://discuss.prosemirror.net/t/expanding-the-selection-to-the-active-mark/478 "2016-11-04T10:24:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mitar](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/mitar/32/375_2.png) [@mitar](https://discuss.prosemirror.net/u/mitar)\
**Post date:** [April 2, 2018, 8:28pm UTC](https://discuss.prosemirror.net/t/expanding-the-selection-to-the-active-mark/478/6 "2018-04-02T20:28:08Z")

</div>

I have found this and [Find extents of a mark given a selection](https://discuss.prosemirror.net/t/find-extents-of-a-mark-given-a-selection/344). Could this maybe be made into a function in ProseMirror. I am afraid to miss some edge case doing this myself.

---

_[View the full topic](https://discuss.prosemirror.net/t/expanding-the-selection-to-the-active-mark/478)._
