Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

tinyMCE and HTML


Go to End


2 Posts   1552 Views

Avatar
Henry24

Community Member, 9 Posts

1 April 2011 at 8:38pm

hi,

is there a way to switch between HTML and tinyMCE

i.e. my users will need to use a WYSIWYG editor but ill need the full html editor without tinymce messing with the code.

alternatively, is it possible to create a new page that references a seperate html page? so instead of entering in content using tinyMCE, it loads a seperate html file saved on the server

cheers

Avatar
Devlin

Community Member, 344 Posts

1 April 2011 at 9:14pm

$HTMLEditorField = new HTMLEditorField();
if( Permission::check('ADMIN') ) {
	$HTMLEditorField->removeExtraClass('htmleditor');
}