Umbraco 7.3.4 - 自定义数据类型值不变

Umbraco 7.3.4 - Custom Data Type Value Doesn't Change

我创建了一个自定义数据类型来处理文本区域的字符限制。

我之前一直关注一个演示,其中 $scope.info = "Hello World" 在用户开始在文本区域中输入之前。

我已经删除了这个,所以它应该从 umbraco 内容界面中删除这个文本。

但它仍然显示 "Hello World" 在文本框的右侧。

客户编辑Angular控制者:

angular.module("umbraco").controller("My.CustomEditorController", function 

    ($scope, notificationsService) {
        $scope.info = "";

        $scope.limitChars = function () {
            var limit = parseInt($scope.model.config.limit);

            if ($scope.model.value.length > limit) {
                $scope.info = "You cannot write more than " + limit + " characters!";
                $scope.model.value = $scope.model.value.substr(0, limit);
                notificationsService.remove(0);
                notificationsService.warning($scope.info);

            }
            else {
                $scope.info = "You have " + (limit - $scope.model.value.length) + " characters left.";
            }
        }

       });

have you tried to increment the version in the config/ClientDependency.config? seems like a caching issue on some level – Eyescream

做了这个并且成功了。