Set cursor to mouse position on editing enter

This commit is contained in:
GordoRank 2014-01-13 12:13:19 +00:00
parent 0957c9ca9f
commit 3510004d97

View file

@ -300,12 +300,14 @@
* @return {fabric.IText} thisArg
* @chainable
*/
enterEditing: function() {
enterEditing: function(options) {
if (this.isEditing || !this.editable) return;
this.exitEditingOnOthers();
this.isEditing = true;
this.setCursorByClick(options.e);
this._updateTextarea();
this._saveEditingProps();