Browse Source

Append the modal inside the container and not the editor element

pull/856/head
Artur Arseniev 8 years ago
parent
commit
a58bfd0f58
  1. 6
      src/modal_dialog/index.js
  2. 2
      src/modal_dialog/view/ModalView.js

6
src/modal_dialog/index.js

@ -52,9 +52,9 @@ module.exports = () => {
return this; return this;
}, },
postRender(editorView) { postRender(view) {
// c.em.config.el || 'body' const el = view.model.getConfig().el || view.el;
this.render().appendTo(editorView.el); this.render().appendTo(el);
}, },
/** /**

2
src/modal_dialog/view/ModalView.js

@ -1,6 +1,6 @@
module.exports = require('backbone').View.extend({ module.exports = require('backbone').View.extend({
template({ pfx, ppfx, content, title }) { template({ pfx, ppfx, content, title }) {
return `<div class="${pfx}dialog ${ppfx}one-bg"> return `<div class="${pfx}dialog ${ppfx}one-bg ${ppfx}two-color">
<div class="${pfx}header"> <div class="${pfx}header">
<div class="${pfx}title">${title}</div> <div class="${pfx}title">${title}</div>
<div class="${pfx}btn-close">&Cross;</div> <div class="${pfx}btn-close">&Cross;</div>

Loading…
Cancel
Save