Skip to content

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

Description

@Oshibuki

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions