How to implement ruler?

Hi. Is there a possibility to add ruler (vertical line) in v6? In v5 it’s possible. Didn’t find anything similar in the documentation.

That’s not part of the library for 6.x, but the way you’d implement it would be something like this:

  • Create a view plugin that adds an absolutely positioned element to view.scrollDOM. Give it some kind of left border so that it’s visible

  • On init, and whenever the plugin gets an update that has the heightChanged flag set, set the element’s left to X * view.defaultCharacterWidth, and its height to view.contentHeight.