-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEXTBOX] Problems with characters selection using mouse inside the textbox #2494
Comments
I will check this asap. |
has to do with canvas.class.js _checkTarget class. removing line 926 seems to fix the problem but guessing it is just not getting set and should be set elsewhere. obj.selectable && |
I do not kwow. To you it solves? |
@glashtin I tried your solution and it seems to work, but I don't know how this could create problems elsewhere. I'll do some more tests to check that everything works. |
that line was recently added to close an issue about selecting object marked as not selectable. this means that we have to see why the itext is marked as not selectable when it is editing mode. |
I think the problem is here:
|
i see two ways of solve this:
see #2460
|
ok adding obj.selectable in _checkTarget was an error. So reverting that change and fix #2460 in proper way is better. |
i am still facing the same issue was anyone able to track it down or find a work around. |
On what version of fabric are you working and what are you trying to obtain? |
Hi asturur, We are not using Textbox directly, based on our project scenario we are connecting the Textbox and Rectangle with Line so when i checked the Textbox selectable key value it is true, with selectable true i am not able to make a text selection in Textbox if i make the selectable value to false, i am able to select text in Textbox using mouse but the connection between the Rectangle and Textbox goes off. currently i am not able to provide the fiddle for this issue, can you please tell me how can i select text without loosing the connection between the Textbox and Rectangle. Thanks |
normally to select text programmatically you can enter in editing mode and use setSelectionStart and setSelectionEnd to set the index where the selection start and finish. Currently there is no way to draw text selection outside editing mode |
I compiled fabricjs using the latest sources present in the repo with this command:
node build.js modules=ALL minifier=uglifyjs
but when I try to select the text in the textbox with the mouse the textbox loses focus.
I created a jsfiddle to reproduce the problem:
http://jsfiddle.net/n3k9xrag/
the compiled version of fabricjs is hosted in one of our servers.
The text was updated successfully, but these errors were encountered: