5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1482 Views |
-
Re: Removing tinymce

16 December 2008 at 1:13pm
If you want to get rid of it then I think you can replace the HTMLEditorField with a TextareaField.
- Page.php-
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->removeByName('Content')';
$fields->addFieldToTab('Root.Content.Main', new TextareaField('Content');
return $fields;Give that a whirl and see what happens!
-
Re: Removing tinymce

16 December 2008 at 11:23pm
nope not there
<?php
class Page extends SiteTree {
static $db = array(
);
static $has_one = array(
);
}class Page_Controller extends ContentController {
function init() {
parent::init();
Requirements::themedCSS("layout");
Requirements::themedCSS("typography");
Requirements::themedCSS("form");
}
}?>
-
Re: Removing tinymce

17 December 2008 at 3:09pm
Yes, you need to add the above function to that page, under the has_one array.
I'd suggest reading the tutorials so you have a better understanding of SS and how it works.
http://doc.silverstripe.com/doku.php#level_1building_your_first_silverstripe_website
| 1482 Views | ||
|
Page:
1
|
Go to Top |



