Browse Source

Merge branch 'dev' of https://github.com/artf/grapesjs into dev

pull/600/head
Artur Arseniev 8 years ago
parent
commit
4c12ce77df
  1. 2
      src/commands/view/Preview.js
  2. 2
      src/dom_components/view/ComponentTextView.js

2
src/commands/view/Preview.js

@ -28,7 +28,7 @@ module.exports = {
this.helper.className = pfx + 'off-prv fa fa-eye-slash';
editorEl.appendChild(this.helper);
this.helper.onclick = () => {
that.stop(editor);
editor.stopCommand('preview');
};
}
this.helper.style.display = 'inline-block';

2
src/dom_components/view/ComponentTextView.js

@ -82,7 +82,7 @@ module.exports = ComponentView.extend({
}
// Avoid re-render on reset with silent option
model.set('content', '');
model.set('content', '').trigger('change:content', model);
comps.add(content);
comps.each(model => clean(model));
comps.trigger('resetNavigator');

Loading…
Cancel
Save