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'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.

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   1873 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');
}