Use PageDown onPreviewRefresh hook to trigger autosize resive when text is changed by the editor