angular.module('yds').directive('ydsWorkbenchNew', ['$ocLazyLoad', '$timeout', '$window', 'Data', 'Basket', 'Workbench',
    function ($ocLazyLoad, $timeout, $window, Data, Basket, Workbench) {
        return {
            restrict: 'E',
            scope: {
                lang: '@',
                userId: '@'
            },
            templateUrl: ((typeof Drupal != 'undefined') ? Drupal.settings.basePath + Drupal.settings.yds_project.modulePath + '/' : '') + 'templates/workbench-new.html',
            link: function (scope, element) {
                scope.ydsAlert = "";
                var editorContainer = angular.element(element[0].querySelector('.highcharts-editor-container'));

                //if userId is undefined or empty, stop the execution of the directive
                if (_.isUndefined(scope.userId) || scope.userId.trim().length == 0) {
                    scope.ydsAlert = "The YDS component is not properly configured." +
                        "Please check the corresponding documentation section";
                    return false;
                }

                //check if the language attr is defined, else assign default value
                if (_.isUndefined(scope.lang) || scope.lang.trim() == "")
                    scope.lang = "en";

                // Load the required CSS & JS files for the Editor
                $ocLazyLoad.load([
                    "css/highcharts-editor.min.css",
                    "lib/highcharts-editor.js"
                ]).then(function () {
                    // Start the Highcharts Editor
                    highed.ready(function () {
                        highed.Editor(editorContainer[0]);
                    });
                });
            }
        }
    }
]);

@@ -1280,16 +1280,140 @@
  %22en%22;%0A%0A
+                var editorOptions = %7B%0A                    features: %22import templates customize export%22%0A                %7D;%0A%0A
         
@@ -1798,16 +1798,31 @@
 ainer%5B0%5D
+, editorOptions
 );%0A     

Disable steps that are not needed in Highcharts Editor