Skip to Content
Nov 16, 2020 at 06:33 PM

Smartedit - Add to the existing decorator

48 Views Last edit Nov 16, 2020 at 02:28 PM 2 rev

I am trying to add some information to the existing decorator in basic and advanced editing. Basicly just show some text next to the buttons.

So I added my custom extension with the ysmarteditmodule like shown here:

After that I tried to add the decorator the the basic perspective like this:

            key: 'se.cms.perspective.basic',
            nameI18nKey: '',
            features: ['abAnalyticsDecorator']

Now the decorator is added to the basic perspective, but it overrides the normal one. How can I just add something to the existing elements as mentioned above?

I also tried the code in

But the build fails if I add this code to my ts file.