tinymce-docs icon indicating copy to clipboard operation
tinymce-docs copied to clipboard

Unable to find the replacement for the resizeTo method in the "Migrating from TinyMCE 4 to TinyMCE 5" guide

Open bam65y opened this issue 3 years ago • 1 comments

This is the link https://www.tiny.cloud/docs/migration-from-4x/

bam65y avatar Apr 26 '21 03:04 bam65y

Hi @bam65y,

I'd like to leave this ticket open until I get a chance to add this information to the Migration guide. To help you out, I'll quote the response from https://github.com/tinymce/tinymce/issues/6501#issuecomment-780293897

To be able to dynamically resize the editor, the recommended approach is to set the editor configuration to use width: '100%' and height: '100%'. The editor target element can then be wrapped in a container e.g. div and the height and width can be set on the container. TinyMCE will dynamically resize to fit its container element.

Here is a Fiddle demonstrating this approach: https://fiddle.tiny.cloud/k5haab.

Let me know if this helps you out, if not, please provide more information about the use-case.

Tyler

tylerkelly13 avatar Apr 27 '21 01:04 tylerkelly13