Jump to:

23361 Posts in 18124 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » tinyMCE and HTML

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

Page: 1
Go to End
Author Topic: 1083 Views
  • Henry24
    Avatar
    Community Member
    9 Posts

    tinyMCE and HTML Link to this post

    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

  • Devlin
    Avatar
    Community Member
    215 Posts

    Re: tinyMCE and HTML Link to this post

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

    1083 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.