Skip to Content
0
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:
https://help.sap.com/viewer/9d346683b0084da2938be8a285c0c27a/1811/en-US/af037831649b4b88b6f0fddcee81f45c.html

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

        perspectiveService.register({
            key: 'se.cms.perspective.basic',
            nameI18nKey: 'se.cms.perspective.basic.name',
            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
https://help.sap.com/viewer/9d346683b0084da2938be8a285c0c27a/1811/en-US/1c7f5da860174b59b4bd45c210da42f2.html

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