FabricJS Add Event - Forum

Forum Navigation
You need to log in to create posts and topics.

FabricJS Add Event

Hi everyone,

I would like to show the name of an object in a field, when the user selects it in the canvas. How could this be done? I can't get it to work...

Thanks very much!
Joerg

@joerg take a look at the attached project please.
Regards.

Uploaded files:
  • You need to login to have access to uploads.

@joerg I have noticed there is a bug in one of the plugin's functions.
I will release an updated plugin version later today within this thread.
Thanks for your patience.

@joerg please unistall FabricJS plugin and install the attached one.
This one will work fine with the above sample app.
Let me know if you have any questions.

Regards.

Uploaded files:
  • You need to login to have access to uploads.
Joerg has reacted to this post.
Joerg

Thanks very much Luis for your quick reply and the demo project! That's what I did too, but as you said, seems like events probably aren't handled correctly.

The FabricJS plugin is wonderful :-)

Kind regards,
Joerg

Update: The new version now works perfectly :-)

luishp has reacted to this post.
luishp

...one more question: That means that I will have to create an "fabAddEvent" entry for each object on the canvas, correct? I also noticed, that putting these entries into the page-enter script, has no effect. Inside a button (like you did in the project above) it works fine.