You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -41,6 +36,42 @@ + (BOOL)handleBackspaceInRange:(NSRange)range replacementText:(NSString *)text i
41
36
42
37
// if the backspace removes the whole content of a paragraph, we remove the typing attributes
43
38
if(NSEqualRanges(nonNewlineRange, range)) {
39
+
40
+
// edge case with lists and blockquotes:
41
+
// for some reason, removing all characters from a list point that is: both the first point of a list and is the last thing in the input, doesn't preserve typing attributes
42
+
// so we manually remove the characters and reapply attribtues for zero width space to appear there
43
+
// otherwise (there still is list or quote) we don't want no actions because attributes are properly preserved and zero width space appears
0 commit comments