neokoenig/jQuery-gridmanager

gm.editableAreaFilter calls for every inctances of gridmanager

ypavlov opened this issue · 2 comments

I have 2 gridmanagers on same page, and gm.editableAreaFilter clear code for both instances when user clicks preview button.
This code works globally

$('.'+gm.options.controlNestedEditable, canvasElem).remove();
$('.'+gm.options.gmContentRegion).contents().unwrap();

What happens when you set up the instances like this?
http://neokoenig.github.io/jQuery-gridmanager/demo/multiple.html

I've created 3 instances (just for test, I'm not need 3 gridmanagers on same page) and it adds duplicated buttons to each next instance

http://screencloud.net/v/i056