Upgrading a Custome RTE Control and Having issues

Hi,

Can any one advise how I can fix this please, I thought just taking it from the V10 site and put in to the V13 site and I am getting errors.

I can find any docs on how to fix the issue, can some one point me in the correct direct.

angular.module("umbraco")
.controller("Macro.RichTextMacro",
    function ($scope) {
        console.log($scope);
        console.log($scope.model);
        console.log($scope.model.value);
        $scope.textInput = {
        label: 'bodyText',
        description: '...',
        view: '/rte.html',
        value: $scope.model.value,
        config: {
            editor: {
                toolbar: ["code", "removeformat", "link", "unlink", "bold", "italic", "underline", "strikethrough"],
                stylesheets: [],
                dimensions: {
                    height: 200
                }
            }
        }
        };
        console.log("test2");
    $scope.$watch('textInput.value', function (newValue, oldValue) {
        $scope.model.value = newValue;
        console.log("change.....");
    });
});

Regards
Darren

Here the HTML part

<div ng-controller="Macro.RichTextMacro">
    <div style="border: 1px solid #ccc">
        <ng-form>
            <umb-editor model="textInput"></umb-editor>
        </ng-form>
    </div>
</div>