21310 Posts in 5739 Topics by 2604 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 931 Views |
-
SilverStripe Admin - Editor Scrollbar

14 September 2010 at 2:55pm
I was wondering if there is any way to get rid of the HTML Editor's 'Scrollbar' in SilverStripe Admin? I don't have a big screen or a huge monitor so at times when working with SS I have two or three scrollbars and it makes the UI difficult to work with. I tried editing css to reduce the height of the editor but it didn't work. Any suggestions will be welcomed.
Here's a pic of what I'm talking about:

-
Re: SilverStripe Admin - Editor Scrollbar

14 September 2010 at 9:55pm
The height of the LeftAndMain panels are calculated with javascript and I would not go into changing that.
What if you plan to attach a $has_many relation with a DataObject that shows in a list that don't fit in the tab and you have no scrollbars?
And also the RightPanel for adding Links and Images needs probably the scrollbar to show the whole panel.
-
Re: SilverStripe Admin - Editor Scrollbar

14 September 2010 at 11:36pm Last edited: 14 September 2010 11:40pm
All I'm really trying to do is reduce the height of of the HTML Editor Area, the area where the content appears for editing. Reducing that will eliminate the scrollbar. Surely that wouldn't interfere with other SS functionality or would it?
-
Re: SilverStripe Admin - Editor Scrollbar

14 September 2010 at 11:54pm
Ah, misunderstood.
You can add this to Page.php to overload the default Content HTMLEditorField and set the rows and cols:
function getCMSFields() {
$f = parent::getCMSFields();
$f->addFieldFromTab('Root.Content.Main',
new HtmlEditorField('Content', _t('SiteTree.HTMLEDITORTITLE', "Content", PR_MEDIUM, 'HTML editor title'), $rows = 30, $cols = 20)
);
return $f;
}See sapphire/forms/HtmlEditorField.php for more info.
| 931 Views | ||
|
Page:
1
|
Go to Top |


