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.

Archive /

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

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

Disable or configure editor on a per-page basis


Go to End


2 Posts   1368 Views

Avatar
Bert

Community Member, 19 Posts

2 July 2008 at 2:26am

Edited: 02/07/2008 2:27am

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.

Avatar
Sam

Administrator, 690 Posts

7 July 2008 at 1:30pm

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.