Can we pls havea ‘rectChange’ event added to CM ‘on’ ?
Since as far as I understand CM already has a setInterval loop checking it’s state, the event will fire if this timeout detects any of the values of cm.getWrapperElement().getBoundingClientRect() changed …
would a PR towards this be considered ?
You’ll get a "refesh" event when the editor notices it’s resized. That’s probably the right event to handle when you need to update something based on the editor size.