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.

General Questions

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

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

tinyMCE and HTML


Reply

2 Posts   1124 Views

Avatar
Henry24

1 April 2011 at 8:38pm Community Member, 9 Posts

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

1 April 2011 at 9:14pm Community Member, 215 Posts

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