bootstrap-wysihtml5 icon indicating copy to clipboard operation
bootstrap-wysihtml5 copied to clipboard

Textarea not resizable

Open logoz opened this issue 13 years ago • 15 comments

Textareas are no longer resizable when using wysihtml5.

logoz avatar Oct 13 '12 17:10 logoz

You have to use the style attribute in the textarea.

daviddyess avatar Oct 14 '12 01:10 daviddyess

WYSIHTML5 sets an iframe, hence you don't see the option to / can't resize it.

There are a few activities related to that at wysihtml5's project page: https://github.com/xing/wysihtml5/issues/233

and a similar one here: https://github.com/xing/wysihtml5/issues/18

zrod avatar Oct 14 '12 04:10 zrod

zrod, so why do WYSIHTML5 gives you this setting if you can't use it? :)

yairEO avatar Nov 24 '12 19:11 yairEO

Where have you seen such setting?

zrod avatar Nov 24 '12 19:11 zrod

you can use this code to resize:

http://www.itsavesyou.com/TextArea_Resizer_example.htm

yairEO avatar Nov 25 '12 01:11 yairEO

@yairEO that does not seem to be wysihtml5

ramontayag avatar Nov 29 '12 04:11 ramontayag

i don't understand your comment.. I gave a 3rd party solution to resize the iframe since the pluging doesn't not let you do it in any way

yairEO avatar Nov 29 '12 04:11 yairEO

@yairEO It does not seem to resize an iframe based on the example. However, I did not read what the code of the plugin to see if it can resize iframes. In any case, looks like resizing of wysihtml5 is set for 0.4 release :)

ramontayag avatar Nov 29 '12 05:11 ramontayag

what do you mean doesn't not seem to resize an iframe based on the example? the example shows exactly how one can resize an iframe using a draggable hook on the bottom of it..it's super :)

I hooked it up to my wesihtml5 easily. you probably mean about expanding the iframe while writing in it, well I think that is not just a good idea as it get get really large sometimes and it's better idea to use a drag instead to change the height

yairEO avatar Nov 29 '12 08:11 yairEO

@yairEO when using your proposed solution, the textarea is no longer editable.

lactose avatar Feb 21 '13 19:02 lactose

A bit late, but I added the resize attribute using jquery:

<script>
    $( document ).ready(function() {
        $(".wysihtml5-sandbox").css("resize", "vertical");
    });
</script>

jonbursh avatar Jan 14 '14 00:01 jonbursh

Thanks, man. Better late than never.

thomaslarsson avatar Jan 14 '14 01:01 thomaslarsson

That doesn't work for me. It just jumps back to the initial values when I click inside the textarea.

staticaland avatar Mar 09 '14 15:03 staticaland

Resize property doesn't work for iFrame on Firefox

CanoGit avatar Jan 20 '17 11:01 CanoGit

See the first line of the readme file

@CanoGit

daviddyess avatar Jan 20 '17 13:01 daviddyess