(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>