another grapejs update and fix for images

This commit is contained in:
Adrian Woeltche 2018-07-31 13:54:43 +02:00
parent 65f25bb009
commit 9b1ab6fc5b
4 changed files with 12 additions and 8 deletions

View file

@ -131,6 +131,9 @@
assets: [],
upload: '/editorapi/upload?type={{type}}&id={{resource.id}}&editor={{editor.name}}',
uploadText: 'Drop images here or click to upload',
headers: {
'X-CSRF-TOKEN': '{{csrfToken}}',
},
},
styleManager: {
clearProperties: true,
@ -347,7 +350,6 @@
// TODO: Show a spinner
getPreparedHtml(function(html) {
sender.set('active', 0);
var modalContent = md.getContentEl();
var mdlDialog = document.querySelector('.gjs-mdl-dialog');
testContentEl.value = html;
mdlDialog.className += ' ' + mdlClass;