mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Signature builder small changes
This commit is contained in:
parent
5584c5037f
commit
4c6fd9cdd1
6 changed files with 19 additions and 22 deletions
7
vendors/ckeditor-plugins/signature/plugin.js
vendored
7
vendors/ckeditor-plugins/signature/plugin.js
vendored
|
|
@ -2,13 +2,16 @@
|
|||
rl_signature_replacer = function (editor, sText, sSignature, bHtml, bInsertBefore)
|
||||
{
|
||||
var
|
||||
bEmptyText = '' === $.trim(sText),
|
||||
sTextWithoutSignature = sText
|
||||
.replace(/\u0002\u0002[\s\S]*\u0003\u0003/gm, '')
|
||||
.replace(/\u0004\u0004[\s\S]*\u0005\u0005/gm, ''),
|
||||
bEmptyText = '' === $.trim(sTextWithoutSignature),
|
||||
sNewLine = (bHtml ? '<br />' : "\n")
|
||||
;
|
||||
|
||||
if (!bEmptyText && bHtml)
|
||||
{
|
||||
bEmptyText = '' !== $.trim(editor.__plainUtils.htmlToPlain(sText));
|
||||
bEmptyText = '' !== $.trim(editor.__plainUtils.htmlToPlain(sTextWithoutSignature));
|
||||
}
|
||||
|
||||
if (!/\u0002\u0002/gm.test(sText))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue