resize/pos changed event

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.

I looked in the docs and there’s no refresh event ?

what arguments does it get ?

My bad, seems I forgot to add that to the docs. It’s there now.