Hi,
I am using Ckeditor latest version. I implemented it in my project in that i am using AngularJS and Rails.
When I copy - paste content in ckeditor source mode and I submit form, data does't get save.
I am using following ckeditor directive.
App.directive("ckEditor", function() {
return {
require: "?ngModel",
link: function(scope, elm, attr, ngModel) {
var ck;
ck = CKEDITOR.replace(elm[0]);
if (!ngModel) {
return;
}
ck.on("pasteState", function() {
scope.$apply(function() {
ngModel.$setViewValue(ck.getData());
});
});function updateModel() {
scope.$apply(function() {
ngModel.$setViewValue(ck.getData());
});
}ck.on('change', updateModel);
ck.on('key', updateModel);
ngModel.$render = function(value) {
ck.setData(ngModel.$viewValue);
};
ck.on('instanceReady', function() {
ck.setData(ngModel.$viewValue);
});
}
};
});

Issue in saving data in source mode
When you run a report from a SharePoint library, connection information can be defined inside the report or in an external file that is linked to the report. If the connection information is embedded within the report, it is called a custom data source.