seasketch / next

A modernization version of the SeaSketch platform, released in 2022.
https://seasketch.org
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

Improve appearance of ReactNodeView/SketchNode when selected #488

Closed underbluewaters closed 1 year ago

underbluewaters commented 1 year ago

Currently SketchNodes show no selection state is you select them as you would text in the prosemirror WYSIWYG editor. For a really good editor experience I need to make sure that the selection state is always apparent.

I guess this is a little hard to do, in that prosemirror doesn't have any built-in facilities to handle NodeView selection other than when directly clicked on. People monitor the document state for selection start/end to determine whether their NodeViews are inside the selection. There's some useful discussion here.