|
@@ -2175,11 +2175,11 @@ typedef NS_ENUM(NSUInteger, YYTextMoveDirection) {
|
|
|
if ([self.delegate respondsToSelector:@selector(textViewDidChange:)]) {
|
|
|
[self.delegate textViewDidChange:self];
|
|
|
}
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:YYTextViewTextDidChangeNotification object:self];
|
|
|
|
|
|
if (!_state.insideUndoBlock) {
|
|
|
[self _resetUndoAndRedoStack];
|
|
|
}
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:YYTextViewTextDidChangeNotification object:self];
|
|
|
}
|
|
|
|
|
|
- (void)setTextVerticalAlignment:(YYTextVerticalAlignment)textVerticalAlignment {
|
|
@@ -3348,6 +3348,7 @@ typedef NS_ENUM(NSUInteger, YYTextMoveDirection) {
|
|
|
if ([self.delegate respondsToSelector:@selector(textViewDidChange:)]) {
|
|
|
[self.delegate textViewDidChange:self];
|
|
|
}
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:YYTextViewTextDidChangeNotification object:self];
|
|
|
|
|
|
_lastTypeRange = _selectedTextRange.asRange;
|
|
|
}
|
|
@@ -3422,10 +3423,9 @@ typedef NS_ENUM(NSUInteger, YYTextMoveDirection) {
|
|
|
if ([self.delegate respondsToSelector:@selector(textViewDidChange:)]) {
|
|
|
[self.delegate textViewDidChange:self];
|
|
|
}
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:YYTextViewTextDidChangeNotification object:self];
|
|
|
|
|
|
_lastTypeRange = _selectedTextRange.asRange;
|
|
|
-
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:YYTextViewTextDidChangeNotification object:self];
|
|
|
}
|
|
|
|
|
|
- (void)setBaseWritingDirection:(UITextWritingDirection)writingDirection forRange:(YYTextRange *)range {
|