Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Disable or configure editor on a per-page basis

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1063 Views
  • Bert
    Avatar
    Community Member
    19 Posts

    Disable or configure editor on a per-page basis Link to this post

    Is it possible to disable or customize the editor on a per-page basis? Let's say I have a page type for news items in which the user can only type plain text in the content field (and that the CMS only generates line breaks), or another page type with just a couple of options in the editor (bold, italic, links). Other page types can have a complete editor.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Disable or configure editor on a per-page basis Link to this post

    That would be quite difficult, because the toolbar is loaded when the CMS is first loaded. You could try making some custom javascript that's executed every time a page is loaded for editing, that disables/enables buttons as appropriate.

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