Browse Source

Fix regression with textable components

pull/2062/head
Artur Arseniev 8 years ago
parent
commit
7f51e0a4ad
  1. 2
      src/utils/Sorter.js

2
src/utils/Sorter.js

@ -376,6 +376,7 @@ module.exports = Backbone.View.extend({
return this.getSourceModel(src, { target, avoidChildren: 0 }); return this.getSourceModel(src, { target, avoidChildren: 0 });
} }
} }
return dropModel; return dropModel;
} }
@ -1078,6 +1079,7 @@ module.exports = Backbone.View.extend({
activeTextModel.trigger('active'); activeTextModel.trigger('active');
const { activeRte } = viewActive; const { activeRte } = viewActive;
const modelEl = model.getEl(); const modelEl = model.getEl();
delete model.opt.temporary;
model.getView().render(); model.getView().render();
modelEl.setAttribute('data-gjs-textable', 'true'); modelEl.setAttribute('data-gjs-textable', 'true');
const { outerHTML } = modelEl; const { outerHTML } = modelEl;

Loading…
Cancel
Save