mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Release fixes
This commit is contained in:
parent
5e31c01344
commit
9a98bff931
30 changed files with 143 additions and 76 deletions
|
|
@ -254,7 +254,7 @@
|
|||
|
||||
sTagName = sTagName.toUpperCase();
|
||||
return !(sTagName === 'INPUT' || sTagName === 'SELECT' || sTagName === 'TEXTAREA' ||
|
||||
(oElement && sTagName === 'DIV' && 'editorHtmlArea' === oElement.className && oElement.contentEditable)
|
||||
(oElement && sTagName === 'DIV' && ('editorHtmlArea' === oElement.className || 'true' === '' + oElement.contentEditable))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -269,8 +269,6 @@
|
|||
window.CKEDITOR.env.isCompatible = true;
|
||||
}
|
||||
|
||||
window.CKEDITOR.dtd.$removeEmpty['p'] = 1;
|
||||
|
||||
self.editor = window.CKEDITOR.appendTo(self.$element[0], oConfig);
|
||||
|
||||
self.editor.on('key', function(oEvent) {
|
||||
|
|
@ -307,9 +305,6 @@
|
|||
self.editor.removeMenuItem('paste');
|
||||
}
|
||||
|
||||
self.editor.setKeystroke(window.CKEDITOR.CTRL + 65 /* A */, 'selectAll');
|
||||
|
||||
|
||||
self.__resizable = true;
|
||||
self.__inited = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -534,14 +534,14 @@
|
|||
oEvent.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
if (oSender && oSender.tagName && oSender.tagName.match(/INPUT|TEXTAREA/i))
|
||||
else if (iKey === Enums.EventKeyCode.A)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (oSender && ('true' === '' + oSender.contentEditable ||
|
||||
(oSender.tagName && oSender.tagName.match(/INPUT|TEXTAREA/i))))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (iKey === Enums.EventKeyCode.A)
|
||||
{
|
||||
if (window.getSelection)
|
||||
{
|
||||
window.getSelection().removeAllRanges();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue