I'm currently building a document editor making use of jQuery UI Selectable. In the editor you can add multiple draggable fields. If one or multiple fields are selected, an options menu at the top appears, which shows a few clickable options (e.g. bold, italic, etc.). The problem is that when this menu is clicked, all fields are deselected automatically.
Does anybody have an idea about how to prvenet this?
Here's my very basic implementation:
$("section.window").selectable({filter: "li.draggable"});
Thanks!