mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 10:25:27 +00:00
feat(core): Update to ckeditor 5. Fixes #5920. Add raw-html-embed only on html signatures
This commit is contained in:
@@ -1109,9 +1109,10 @@ static const NSString *kEncryptedUserNamePrefix = @"uenc";
|
||||
tmpIdentities = [NSMutableArray array];
|
||||
for (identity in identities) {
|
||||
tmpIdentity = [NSMutableDictionary dictionaryWithDictionary: identity];
|
||||
if ([tmpIdentity objectForKey: @"signature"]) {
|
||||
if ([tmpIdentity objectForKey: @"signature"] ) {
|
||||
// Add raw html embed class
|
||||
if ([[tmpIdentity objectForKey: @"signature"] rangeOfString:@"raw-html-embed"].location == NSNotFound) {
|
||||
if ([[tmpIdentity objectForKey: @"signature"] rangeOfString:@"raw-html-embed"].location == NSNotFound
|
||||
&& [[[self userDefaults] mailComposeMessageType] isEqualToString: @"html"]) {
|
||||
signature = [NSString stringWithFormat:@"<div class=\"raw-html-embed\">%@</div>", [tmpIdentity objectForKey: @"signature"]];
|
||||
[tmpIdentity setObject:signature forKey:@"signature"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user