News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Textarea resizing?

Started by Steve, September 11, 2014, 04:05:42 PM

Previous topic - Next topic

Steve

Where would I go to add rows to the textarea that I'm typing in right now? I'd like to make it taller. :)
DO NOT pm me for support!

ARG01

What do you mean by "add rows"? If you are talking about the text area where you type, put your cursor over the bottom center or right corner and pull down.  ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Steve

Right ... I know I can do that, but I'm hoping I can make it default to a larger height.
DO NOT pm me for support!

ARG01

Not sure off hand as I am not at my own comp to try. Maybe look for this in editor.css and add a height to it. ?

.editor {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
}


This may however have an effect on other text areas as well. Again, not sure?  ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Steve

DO NOT pm me for support!

margarett

Actually that option is controlled in Sources/Post.php
// Now create the editor.
$editorOptions = array(
'id' => 'message',
'value' => $context['message'],
'labels' => array(
'post_button' => $context['submit_label'],
),
// add height and width for the editor
'height' => '175px',
'width' => '100%',
// We do XML preview here.
'preview_type' => 2,
);
create_control_richedit($editorOptions);

There you set "height" ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Steve

DO NOT pm me for support!

Advertisement: