CM6 equivalent of some CM5 functions

Hi, I could not find the CM6 equivalent of those CM5 functions in the documentation (sorry if they are and I missed them):

  • cm.setSize
  • cm.refresh

What is the best way to get the behavior of those functions in CM6?

setSize doesn’t exist. You must use regular CSS to size the editor.

refresh should rarely be necessary, but when you do something like change the CSS that affects the editor, requestMeasure should cause it to update itself.

got it, thanks for the quick reply.