Angularjs 带角度ng重复的CKEditor

Angularjs 带角度ng重复的CKEditor,angularjs,ckeditor,Angularjs,Ckeditor,我有一个html元素数组,每个元素都需要用户使用CKEditor进行更改。在用户更改元素并在数组中循环之后,我得到旧值 <div ng-repeat="item in site"> <textarea ng-model="item" ckeditor="ckeditorOptions"></textarea> <input type="button" value="Test unit" ng-click="element

我有一个html元素数组,每个元素都需要用户使用
CKEditor
进行更改。在用户更改元素并在数组中循环之后,我得到旧值

 <div ng-repeat="item in site">
        <textarea ng-model="item" ckeditor="ckeditorOptions"></textarea>
        <input type="button" value="Test unit" ng-click="elementUnit(item)" />
 </div>

内部控制器

$scope.ckeditorOptions = {
        language: 'en',
        allowedContent: true,
        entities: true
}; 

$scope.uploadContent = function(site) {
        console.log(site);
        for (var i = 0; i < site.length; i++) {
            console.log(site[i]); // Get old value !!
        }
}

$scope.elementUnit= function(item) {
        console.log(item);// in this case I get new value
}
$scope.ckeditorOptions={
语言:"en",,
允许内容:正确,
实体:正确
}; 
$scope.uploadContent=函数(站点){
控制台日志(站点);
对于(变量i=0;i
我能为这个案子做些什么


谢谢。

电子代码在哪里?我添加了代码@sajeetharan您可能必须在我发布数组时将项目数组发布到,它返回旧值您只向我们显示了一半代码,很难帮助我们电子代码在哪里?我添加了代码@sajeetharan您可能必须在我发布数组时将项目数组发布到,它以旧值返回。您只向我们显示了一半的代码,很难帮助我们