mouseleave callback

18 views
Skip to first unread message

chateaude...@gmail.com

unread,
Sep 1, 2013, 3:54:25 AM9/1/13
to snape...@googlegroups.com
Hi,

I've noticed that Snapeditor inplace overrides the mouseleave callback function.
Is it possible to add a listener to this event in the editor settings ?
I will need this in my application.

Damien

Wesley Wong

unread,
Sep 3, 2013, 9:08:19 PM9/3/13
to snape...@googlegroups.com
Hi Damien,

You can attach event handlers to "snapeditor.mouseout".

var editor = new SnapEditor.InPlace("editor");
editor
.on("snapeditor.mouseout", function (e) {
 
// Do something.
 
// e.api is a reference to editor.api.
});

I believe the docs are missing this. I will update them.

Let me know if you have any other questions.

Cheers,
Wesley

chateaude...@gmail.com

unread,
Sep 12, 2013, 10:43:26 AM9/12/13
to snape...@googlegroups.com
Hi,

This doesn't seem to work with several editors opened

Damien

Wesley Wong

unread,
Sep 12, 2013, 1:19:59 PM9/12/13
to snape...@googlegroups.com
Hi Damien,

Are you seeing any errors in the console?

Thanks,
Wesley
Reply all
Reply to author
Forward
0 new messages