News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Change Editor window

Started by Poreman, April 19, 2008, 09:57:21 AM

Previous topic - Next topic

Poreman

SMF 2.0 Beta 3 Public

Can anyone point me to the file where the width and height of the editor window are stored.  I would like to change the width and height of the post editor window and can't seem to find what to edit.

Thanks
Poreman
I, even I, am the LORD; and beside me there is no saviour.
Isaiah 43:11

TrustingJesus

Poreman

Any takers, on this one?  Shouldn't be too hard for someone acquainted with the 2.0 beta version.  I just can't seem to find where the parameters for the editor imput window is found.

Appreciate any help
Poreman
I, even I, am the LORD; and beside me there is no saviour.
Isaiah 43:11

TrustingJesus

Eliana Tamerin

Sources/Subs-Editor.php

Find this:
// Start off the editor...
$context['controls']['richedit'][$editorOptions['id']] = array(
'id' => $editorOptions['id'],
'value' => $editorOptions['value'],
'rich_value' => addcslashes(bbc_to_html($editorOptions['value']), "'"),
'rich_active' => empty($modSettings['disable_wysiwyg']) && (!empty($options['wysiwyg_default']) || !empty($editorOptions['force_rich']) || !empty($_REQUEST[$editorOptions['id'] . '_mode'])),
'disable_smiley_box' => !empty($editorOptions['disable_smiley_box']),
'columns' => isset($editorOptions['columns']) ? $editorOptions['columns'] : 60,
'rows' => isset($editorOptions['rows']) ? $editorOptions['rows'] : 12,
'width' => isset($editorOptions['width']) ? $editorOptions['width'] : '70%',
'height' => isset($editorOptions['height']) ? $editorOptions['height'] : '150px',
'form' => isset($editorOptions['form']) ? $editorOptions['form'] : 'postmodify',
'bbc_level' => !empty($editorOptions['bbc_level']) ? $editorOptions['bbc_level'] : 'full',
'preview_type' => isset($editorOptions['preview_type']) ? (int) $editorOptions['preview_type'] : 1,
'labels' => !empty($editorOptions['labels']) ? $editorOptions['labels'] : array(),
);


Here you can alter all the values for the post editor window. Width and height is probably what you want, though you could also adjust the columns and rows.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Poreman

Grand! Just what I was looking for.
Thanks Much
Poreman
I, even I, am the LORD; and beside me there is no saviour.
Isaiah 43:11

TrustingJesus

Advertisement: