tinymce / tinymce

The world's #1 JavaScript library for rich text editing. Available for React, Vue and Angular
https://www.tiny.cloud
Other
15.11k stars 2.24k forks source link

tinymce dialog component textarea - cannot set size #6591

Open DNWEIJ opened 3 years ago

DNWEIJ commented 3 years ago

The textarea component is not workable as i cannot find any way of sizing it. If i place it in a dialog, there is no way to resize the textarea (there are no properties for it)

Why not just keep the html elemens rows and cols to size the text area to something workable?

Note: I use the textarea to display a larger text that can be selected from a dropdown, so initally the text area is empty

lnewson commented 3 years ago

Hi @DNWEIJ,

I can confirm that you can't currently do this. Part of the reason likely relates to the fact the UI needs to be responsive, so cols probably doesn't make sense however we should be able to add rows. Anyways, I'm going to label this as a feature request for our Product team to review.

DNWEIJ commented 3 years ago

Sorry for the late reaction.... Well having just two line textarea isn't working at all....being responsive or not.... I would not see this as a feature but as a bug. Even in responsive area's it should still be sizeable either in percentages in in grid size or what ever the system is you use. Any workaround available? Like using somewhere csss/javscript to set size?

And to be honest, responsive doesn't seem to be the issues, since a responsive component more or less is always sized

sabina-talipova commented 1 year ago

Hi @lnewson,

I'm interested in learning if there have been any news regarding potential solutions to this issue. We've encountered this problem when implementing the new version of TinyMCE v6. We provide our users with the option to adjust the height of the TinyMCE editor textarea. Sometimes, it's crucial for users to have an extremely narrow input field, typically spanning just two rows or around 40px in height. However, with the new version of the editor, we've noticed that the minimum height cannot be set to less than 400px, and it affects the entire editor, not just the textarea. It would be great to be able to control the height of the textarea using the settings provided by the TinyMCE API.

Thank you in advance.

tiny-stale-bot commented 1 month ago

This issue is stale because it has been open 365 days with no activity. Please comment if you wish to keep this issue open or it will be closed in 30 days.

GuySartorelli commented 1 month ago

Please keep this open, kind bot.