mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:18 +01:00
* Api: Enable d-n-d into HtmlArea
This commit is contained in:
parent
5dcf1e842f
commit
a69d24ee66
@ -149,7 +149,7 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
|
||||
language: et2_htmlarea.LANGUAGE_CODE[egw.preference('lang', 'common')],
|
||||
language_url: egw.webserverUrl+'/api/js/tinymce/langs/'+et2_htmlarea.LANGUAGE_CODE[egw.preference('lang', 'common')]+'.js',
|
||||
paste_data_images: true,
|
||||
paste_filter_drop: false,
|
||||
paste_filter_drop: true,
|
||||
browser_spellcheck: true,
|
||||
contextmenu: false,
|
||||
images_upload_url: imageUpload,
|
||||
@ -199,6 +199,9 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
|
||||
if (self.editor && self.editor.editorContainer)
|
||||
{
|
||||
jQuery(self.editor.editorContainer).height(self.options.height);
|
||||
jQuery(self.editor.iframeElement.contentWindow.document).on('dragenter', function(){
|
||||
if (jQuery('#dragover-tinymce').length < 1) jQuery("<style id='dragover-tinymce'>.dragover:after {height:calc(100% - "+jQuery(this).height()+"px) !important;}</style>").appendTo('head');
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -268,7 +268,7 @@ app.classes.mail = AppJS.extend(
|
||||
textAreaWidget.tinymce.then(()=>{
|
||||
that.compose_resizeHandler();
|
||||
jQuery(textAreaWidget.editor.iframeElement.contentWindow.document).on('dragenter', function(){
|
||||
jQuery('#mail-compose').addClass('dragover');
|
||||
// anything to bind on tinymce iframe
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user