romanvm / django-tinymce4-lite

TinyMCE 4 editor widget for Django
MIT License
126 stars 47 forks source link

Auto resize #30

Closed arviesan24 closed 6 years ago

arviesan24 commented 6 years ago

I can't find a way to auto resize the width of the text area in the form. I was able to fit it to the form but it will ruin the design for devices with smaller screen.

romanvm commented 6 years ago

TinyMCE supports 'auto' property for width and height to auto-resize it to the size of the external container.

arviesan24 commented 6 years ago

thanks. it works now. I changed this in the forms.py file

mce_attrs={'required': True, 'width': 'auto'}