cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smart edit customization

0 Likes
252

Hi, I am trying to override the seMediaFormat.js. I wanto to override the html and as well as a controller. For this I done the following steps

  • created CustomSmartEdit Extension
  • Added Configuration values
  • created a new module called overrideseMediaFormat.js.
/*
 * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
 */
angular
.module('overrideSeMediaFormatModule', [
'testContainerTemplates'
])
.factory('seMediaFormat', function() {

    return {
        templateUrl: 'overrideSeMediaFormatTemplate.html',
        controller: 'seMediaFormatController',
        controllerAs: 'ctrl',
        bindings: {
            mediaUuid: '<',
            mediaFormat: '<',
            isUnderEdit: '<',
            field: '<',
            onFileSelect: '&?',
            onDelete: '&?',
            isFieldDisabled: '<'
        }

    };

});

Until 1905 we need to import this module in SeModule.But now it is showing as deprecated. Where I need to import this so that cmssmarteditcontainer will pick this up?

Thanks,

Sreenivas A.

Accepted Solutions (0)

Answers (0)