mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-01 06:44:18 +00:00
@@ -71,6 +71,15 @@
|
||||
});
|
||||
});
|
||||
|
||||
ck.on('paste', function(event) {
|
||||
var html;
|
||||
if (event.data.type == 'html') {
|
||||
html = event.data.dataValue;
|
||||
// Remove images to avoid ghost image in Firefox; images will be handled by the Image Upload plugin
|
||||
event.data.dataValue = html.replace(/<img( [^>]*)?>/gi, '');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept the request when an image is pasted, keep an inline base64 version only.
|
||||
ck.on('fileUploadRequest', function(event) {
|
||||
var data, img;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user