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