Merge pull request #3889 from FinnStutzenstein/fixImagePlugin

Fix image plugin
This commit is contained in:
Emanuel Schütze 2018-09-24 13:06:50 +02:00 committed by GitHub
commit d4f9da9cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ angular.module('OpenSlidesApp.mediafiles.image-plugin', [
CKEDITOR.dialog.getCurrent().disableButton('ok');
// Load the main plugin template and paste it into the container
var template = $templateCache.get('static/templates/mediafiles/image-plugin.html');
var template = $templateCache.get('mediafiles/static/templates/mediafiles/image-plugin.html');
if (!template) {
throw 'Template for image plugin not found!';
}
@ -67,6 +67,9 @@ angular.module('OpenSlidesApp.mediafiles.image-plugin', [
CKEDITOR.tools.imagebrowser.updateImageSize(scale);
}
});
// Hack: call the resize event, so the dom does an update.
CKEDITOR.tools.callFunction(224, {});
}
});
// React on double clicks in the textarea. If an image was selected, open this dialog.