neokoenig / jQuery-gridmanager

A way of building rows and grids with built in editable regions; requires jQuery, jQueryUI, Bootstrap 3.x, & optional TinyMCE or CKEditor
http://neokoenig.github.io/jQuery-gridmanager/
461 stars 129 forks source link

gm.editableAreaFilter calls for every inctances of gridmanager #93

Open ypavlov opened 7 years ago

ypavlov commented 7 years ago

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();
neokoenig commented 7 years ago

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

ypavlov commented 7 years ago

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