how do I remove tinymce?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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!
where? what page.php?
In your /mysite/code/ directory.
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");
}
}
?>
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