|
|
@ -46,6 +46,7 @@ define([
|
|
|
|
'/common/test.js',
|
|
|
|
'/common/test.js',
|
|
|
|
|
|
|
|
|
|
|
|
'/bower_components/diff-dom/diffDOM.js',
|
|
|
|
'/bower_components/diff-dom/diffDOM.js',
|
|
|
|
|
|
|
|
'/bower_components/file-saver/FileSaver.min.js',
|
|
|
|
|
|
|
|
|
|
|
|
'css!/customize/src/print.css',
|
|
|
|
'css!/customize/src/print.css',
|
|
|
|
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
|
|
|
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
|
|
@ -1085,6 +1086,9 @@ define([
|
|
|
|
border: Messages.pad_mediatagBorder,
|
|
|
|
border: Messages.pad_mediatagBorder,
|
|
|
|
preview: Messages.pad_mediatagPreview,
|
|
|
|
preview: Messages.pad_mediatagPreview,
|
|
|
|
'import': Messages.pad_mediatagImport,
|
|
|
|
'import': Messages.pad_mediatagImport,
|
|
|
|
|
|
|
|
download: Messages.download_mt_button,
|
|
|
|
|
|
|
|
share: Messages.pad_mediatagShare,
|
|
|
|
|
|
|
|
open: Messages.pad_mediatagOpen,
|
|
|
|
options: Messages.pad_mediatagOptions
|
|
|
|
options: Messages.pad_mediatagOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
Ckeditor._commentsTranslations = {
|
|
|
|
Ckeditor._commentsTranslations = {
|
|
|
@ -1165,6 +1169,26 @@ define([
|
|
|
|
editor.plugins.mediatag.import = function($mt) {
|
|
|
|
editor.plugins.mediatag.import = function($mt) {
|
|
|
|
framework._.sfCommon.importMediaTag($mt);
|
|
|
|
framework._.sfCommon.importMediaTag($mt);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
editor.plugins.mediatag.download = function($mt) {
|
|
|
|
|
|
|
|
var media = Util.find($mt, [0, '_mediaObject']);
|
|
|
|
|
|
|
|
if (!(media && media._blob)) { return void console.error($mt); }
|
|
|
|
|
|
|
|
window.saveAs(media._blob.content, media.name);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
editor.plugins.mediatag.open = function($mt) {
|
|
|
|
|
|
|
|
var hash = framework._.sfCommon.getHashFromMediaTag($mt);
|
|
|
|
|
|
|
|
framework._.sfCommon.openURL(Hash.hashToHref(hash, 'file'));
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
editor.plugins.mediatag.share = function($mt) {
|
|
|
|
|
|
|
|
var data = {
|
|
|
|
|
|
|
|
file: true,
|
|
|
|
|
|
|
|
pathname: '/file/',
|
|
|
|
|
|
|
|
hashes: {
|
|
|
|
|
|
|
|
fileHash: framework._.sfCommon.getHashFromMediaTag($mt)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
title: Util.find($mt[0], ['_mediaObject', 'name']) || ''
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
framework._.sfCommon.getSframeChannel().event('EV_SHARE_OPEN', data);
|
|
|
|
|
|
|
|
};
|
|
|
|
Links.init(Ckeditor, editor);
|
|
|
|
Links.init(Ckeditor, editor);
|
|
|
|
}).nThen(function() {
|
|
|
|
}).nThen(function() {
|
|
|
|
// Move ckeditor parts to have a structure like the other apps
|
|
|
|
// Move ckeditor parts to have a structure like the other apps
|
|
|
|