1

以下使用 MathField 初始化的输入元素是不可编辑的。

<input class="form-control input-lg" ng-model="question" id="question" style="border:0px;" placeholder="* Question" type="text"/>

并在控制器中

MQ.MathField($scope.answerSpan, {
    handlers: {
        edit: function() {
            $scope.answerSpan1 = answerMathField.latex();
            if ($scope.$root.$$phase != '$apply' && $scope.$root.$$phase != '$digest')
                $scope.$apply();

        }
    }
});

MathQuill 和 AngularJS 是否相互干扰?

4

0 回答 0