feat(core): Update to ckeditor 5. Fixes #5920. Add raw-html-embed only on html signatures

This commit is contained in:
smizrahi
2024-04-04 18:20:06 +02:00
parent 2e37e59ed1
commit a9e02d94a2
+3 -2
View File
@@ -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"];
}