Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

I have a problem. I want to add text editor on my page. I choose Angular-twix editor. I added on my page and connected with controller. I initialize first value for text editor. There is no problem to get value but when I write some text, ng-model does not send

(function () {
  'use strict';

  angular.module('BlurAdmin.pages.writing.newcontent')
      .controller('newcontentCtrl',['$scope','$sce','$http', '$translate','$filter', 'toastr', 'serverNode','newContentServices','categoryServices','tagServices', newcontentCtrl]);
      
     function newcontentCtrl($scope, $sce, $http, $translate, $filter, toastr, serverNode, newContentServices, categoryServices, tagServices) { 
       $scope.newWriting ={
                title:"First Title",
                text:"First Text",
                customField:"",
                category:"",
                tags:"",
                status:"",
                publistTime:"",
                publishDate:""
            };
       
       console.log($scope.newWriting.text);
       
           }
}) ();
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<trix-editor class="trix-content" style="color: white; min-height: 200px;" placeholder="Enter Text" angular-trix ng-model="newWriting.text">
            </trix-editor>

value to controller.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.