JSFiddle - React, Tailwind, and code Playground

by ckosloski

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js"></script>
<script src="https://vitalets.github.io/angular-xeditable/dist/js/xeditable.min.js"></script>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://vitalets.github.io/angular-xeditable/dist/css/xeditable.css">
<div ng-app="demo">

  <h1>XEditable caret issue</h1>

  <span ng-controller="main">
    <div editable-text="model.value">
    {{model.value}}
    </div>
    <div editable-text="model.value" buttons="no" e-single blur="submit">
    {{model.value}}
    </div>
    <a href="#" editable-text="model.value" buttons="no" e-single blur="submit">{{ user.name || 'empty' }}</a>
  </span>

</div>

JavaScript

(function () {
  angular.module('demo', ['xeditable'])
   .controller('main', ['$scope', function ($scope) {
   	$scope.model = {
    	value: 'sample'
    };
   }])
   .run(function(editableOptions) {
      editableOptions.theme = 'bs3';
    });
})();