第565行
$scope.editor._onContentChanged = function (html, catalogs, title, abstract) {
$scope.ngModel.catalogs = catalogs;
$scope.ngModel.title = title;
$scope.ngModel.abstract = abstract;
// do sth...
$scope.editor.onContentChanged(html);
};
这个函数报错,是由于ngModel一般是绑定到使用该组件的外部环境的一个字符串,报错显示无法在string类型添加属性。建议直接在$scope上添加title等属性