mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-20 11:21:51 +00:00
Set cursor to mouse position on editing enter
This commit is contained in:
parent
0957c9ca9f
commit
3510004d97
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue