Skip to content

Commit 07193fb

Browse files
committed
1 parent 944fedf commit 07193fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

YYText/Utility/NSAttributedString+YYText.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ - (void)setYy_strikethroughStyle:(NSUnderlineStyle)strikethroughStyle {
824824
}
825825

826826
- (void)setYy_strikethroughColor:(UIColor *)strikethroughColor {
827-
[self yy_setStrokeColor:strikethroughColor range:NSMakeRange(0, self.length)];
827+
[self yy_setStrikethroughColor:strikethroughColor range:NSMakeRange(0, self.length)];
828828
}
829829

830830
- (void)setYy_underlineStyle:(NSUnderlineStyle)underlineStyle {

YYText/YYTextView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,6 +2364,7 @@ - (void)setPlaceholderText:(NSString *)placeholderText {
23642364
_placeholderAttributedText = atr;
23652365
}
23662366
}
2367+
_placeholderText = [_placeholderAttributedText yy_plainTextForRange:NSMakeRange(0, _placeholderAttributedText.length)];
23672368
[self _commitPlaceholderUpdate];
23682369
}
23692370

0 commit comments

Comments
 (0)