EditorView's value update process triggers a recurring timer which automatically recalculates the height at regular and decreasing intervals. This handles the situation where a slow-loading image pops in after a while and changes the height of things without any change registering to the value.
Instead of this blunt approach, we ought to be able to check the DOM for image elements and attach load listeners to trigger a height recalc only and automatically when the image loads.
EditorView's value update process triggers a recurring timer which automatically recalculates the height at regular and decreasing intervals. This handles the situation where a slow-loading image pops in after a while and changes the height of things without any change registering to the value.
Instead of this blunt approach, we ought to be able to check the DOM for image elements and attach load listeners to trigger a height recalc only and automatically when the image loads.