Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Seyit replikacep.com on February 08, 2019, 04:10:25 AM

Title: SMF 2.1 RC editör
Post by: Seyit replikacep.com on February 08, 2019, 04:10:25 AM
code in which file. can you help me
I couldn't find the codes

Quote<div class="sceditor-container ltr sourceMode" style="width: 870.333px; height: 265px;">


i will change this shape:
Quote
<div class="sceditor-container ltr sourceMode" style="width: 870.333px; height: 450px;">
Title: Re: SMF 2.1 RC editör
Post by: maximus23 on February 08, 2019, 11:55:59 AM
Hello,

Modify the height here :

File : Sources\Post.php

Search:

// 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' => '275px',
'width' => '100%',
// We do XML preview here.
'preview_type' => 2,
'required' => true,
);


:)
Title: Re: SMF 2.1 RC editör
Post by: Seyit replikacep.com on February 08, 2019, 06:24:21 PM
thank you . Very good solution
Title: Re: SMF 2.1 RC editör
Post by: Hatshepsut on February 08, 2019, 11:35:56 PM
Yes, thanks for solution :) I have increased editor height to 375px, but I wish to increase also height of the "Quick Reply" window, where is the code fot that?
Title: Re: SMF 2.1 RC editör
Post by: live627 on February 09, 2019, 05:50:51 AM
Display.php, very similar code to that posted above
Title: Re: SMF 2.1 RC editör
Post by: maximus23 on February 09, 2019, 05:52:21 AM
Hello,

For the "Quick Reply" modify the height here :

File : Sources\Display.php

Search:

// Now create the editor.
$editorOptions = array(
'id' => 'quickReply',
'value' => '',
'disable_smiley_box' => empty($options['use_editor_quick_reply']),
'labels' => array(
'post_button' => $txt['post'],
),
// add height and width for the editor
'height' => '250px',
'width' => '100%',
// We do HTML preview here.
'preview_type' => 1,
// This is required
'required' => true,
);


:)
Title: Re: SMF 2.1 RC editör
Post by: Seyit replikacep.com on February 09, 2019, 09:12:11 AM
 504px height
does not show on the screen editor
Title: Re: SMF 2.1 RC editör
Post by: Arantor on February 09, 2019, 09:17:27 AM
Have less smileys on the editor page.
Title: Re: SMF 2.1 RC editör
Post by: Hatshepsut on February 09, 2019, 12:30:56 PM
Quote from: maximus23 on February 09, 2019, 05:52:21 AM
Hello,

For the "Quick Reply" modify the height here :

File : Sources\Display.php

Search:

// Now create the editor.
$editorOptions = array(
'id' => 'quickReply',
'value' => '',
'disable_smiley_box' => empty($options['use_editor_quick_reply']),
'labels' => array(
'post_button' => $txt['post'],
),
// add height and width for the editor
'height' => '250px',
'width' => '100%',
// We do HTML preview here.
'preview_type' => 1,
// This is required
'required' => true,
);


:)

Thanks :) With two rows of emoticons in my forum, I have increased "Quick Reply" frame height to 350px, and it looks better :)
Title: Re: SMF 2.1 RC editör
Post by: woolly bugger on February 10, 2019, 10:53:58 AM
this has been very helpful, but what about the QuickEdit window?
Title: Re: SMF 2.1 RC editör
Post by: maximus23 on February 10, 2019, 11:22:14 AM
Quote from: woolly bugger on February 10, 2019, 10:53:58 AM
this has been very helpful, but what about the QuickEdit window?
;)

File: Index.css (for each themes)

Search:

#quick_edit_body_container textarea,
.move_topic textarea,
dd textarea {
width: 100%;
min-height: 100px;
}


Modify the height -> min-height: 100px;

:)
Title: Re: SMF 2.1 RC editör
Post by: woolly bugger on February 10, 2019, 01:06:20 PM
perfect! thanks...