Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于指令在bootstrap栅格中使用时出现toolbar错位,以及在angular1.7.7使用时,$scope.editor._onContentChanged函数出错 #1

Open
Oshibuki opened this issue Mar 4, 2019 · 0 comments

Comments

@Oshibuki
Copy link

Oshibuki commented Mar 4, 2019

toolbar错位:
在bootstrap3的一个col-md-10栅格中滚动时工具条出错,491行处的position可以使用chrome的新属性position:sticky;详情见杀了个回马枪,还是说说position:sticky吧

第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等属性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant