.refresh() in v6

Hi all,

I’m pretty sure the answer to this is no, but I just wanted to see if someone could confirm

I’m porting some inherited codemirror v2 code, and there is a reference to editor.refresh();

As it’s inherited, I’m not too sure what it’s using the .refresh() for

So I was wondering if there was a direct replacement in v6?

If not, I’ll just comment out the code and see what breaks :slight_smile:


This caused the editor to re-measure its size and the size of its content, in order to make sure everything is still displayed correctly after a style or size change. It is often not needed anymore, but in cases where it is (like a change in the CSS rules), you can call .requestMeasure() to get a similar effect in version 6.

Awesome thanks @marijn