SaaS CMS has officially launched! Learn more now.

Per Nergård
Oct 9, 2016
  2275
(1 votes)

Special editor toolbuttons for administrators

In one recent project I had the need to give the administrators some extra editor toolbuttons over the default set setup for the general editor. I googled a bit but didn't find exactly what I was looking for.

Finally I found an exaample in the documentation on how to create a global editor settings from code with the possiblity to add buttons for administrators. 

Ok so this seems to do the trick except that I wanted the SuperAdmins to be able to configure this from admin mode instead of having everything created from code.

So I solved this by defining two global settings via admin mode. On "Ordinary" for the general editor and one "ExtraOrdinary" for the admin editors and combining those in the global setting.

Code over at my gist

This is how it looks in admin mode:

1. Settings

Image Profiles_overview.jpg

2. Ordinary toolbars

Image Ordinary_buttons.jpg

3. ExtraOrdinary toolbars

Here the last toolbar contains a duplicate that already exists in the Ordinary setting.

Image extra_buttons.jpg

4. The result when looking in the code created profile logged in as an administrator.

Note that the duplicate link-button has been removed. If duplicates isn't removed the code doesn't work.

Image standard_result.jpg

Code over at my gist

Oct 09, 2016

Comments

Please login to comment.
Latest blogs
Optimizely release SaaS CMS

Discover the future of content management with Optimizely SaaS CMS. Enjoy seamless updates, reduced costs, and enhanced flexibility for developers...

Andy Blyth | Jul 17, 2024 | Syndicated blog

A day in the life of an Optimizely Developer - London Meetup 2024

Hello and welcome to another instalment of A Day In The Life Of An Optimizely Developer. Last night (11th July 2024) I was excited to have attended...

Graham Carr | Jul 16, 2024

Creating Custom Actors for Optimizely Forms

Optimizely Forms is a powerful tool for creating web forms for various purposes such as registrations, job applications, surveys, etc. By default,...

Nahid | Jul 16, 2024

Optimizely SaaS CMS Concepts and Terminologies

Whether you're a new user of Optimizely CMS or a veteran who have been through the evolution of it, the SaaS CMS is bringing some new concepts and...

Patrick Lam | Jul 15, 2024

How to have a link plugin with extra link id attribute in TinyMce

Introduce Optimizely CMS Editing is using TinyMce for editing rich-text content. We need to use this control a lot in CMS site for kind of WYSWYG...

Binh Nguyen Thi | Jul 13, 2024

Create your first demo site with Optimizely SaaS/Visual Builder

Hello everyone, We are very excited about the launch of our SaaS CMS and the new Visual Builder that comes with it. Since it is the first time you'...

Patrick Lam | Jul 11, 2024