javascript - xeditable e-formclass is not working with textarea -


i using xeditable plugin in angular js.it has e-formclass attribute provides class form , work fine textbox when using textarea it's not working.

textarea

var app = angular.module("app", ["xeditable"]);    app.run(function(editableoptions) {    editableoptions.theme = 'bs3';  });    app.controller('ctrl', function($scope, $filter) {    $scope.user = {      desc: 'awesome user \ndescription!'    };  });
div[ng-app] { margin: 50px; }
<link href="https://vitalets.github.io/angular-xeditable/dist/css/xeditable.css" rel="stylesheet"/>  <link href="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-sanitize.min.js"></script>  <script src="https://vitalets.github.io/angular-xeditable/dist/js/xeditable.js"></script>        <h4>angular-xeditable textarea (bootstrap 3)</h4>  <div ng-app="app" ng-controller="ctrl">    <a href="#" editable-textarea="user.desc" e-formclass="clss1" e-rows="7" e-cols="40">      <pre>{{ user.desc || 'no description' }}</pre>    </a>  </div>

and here snippet textbox

var app = angular.module("app", ["xeditable"]);    app.run(function(editableoptions) {    editableoptions.theme = 'bs3';  });    app.controller('ctrl', function($scope) {    $scope.user = {      name: 'awesome user'    };  });
div[ng-app] { margin: 50px; }
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>  <link href="https://vitalets.github.io/angular-xeditable/dist/css/xeditable.css" rel="stylesheet"/>  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-sanitize.min.js"></script>  <script src="https://vitalets.github.io/angular-xeditable/dist/js/xeditable.js"></script>          <h4>angular-xeditable text (bootstrap 3)</h4>  <div ng-app="app" ng-controller="ctrl">    <a href="#" e-formclass="hello" editable-text="user.name">{{ user.name || 'empty' }}</a>  </div>

textbox textarea


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -