CR: Specifying a node for `scrollIntoView` method


#1

Is it possible to add a parameter for scroll into view specifying a particular node? My use case is to scroll into the view a node with a mark on it (highlight).

Related: https://discuss.prosemirror.net/t/cr-specifying-a-top-most-node-to-be-scrolled-for-scrollintoview-method/


#2

Nope. You might be able to use coordsAtPos to get the coordinates you’re interested in and then write your own code that scrolls the editor to that position.


#3

Already did that as suggested in the aforementioned topic! Thanks for help, Marijn!