Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions ios/ReactNativeRichTextEditorView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,9 @@ - (void)setValue:(NSString *)value {
[parser replaceWholeFromHtml:initiallyProcessedHtml];
}

// update the placeholder
[self setPlaceholderLabelShown:textView.textStorage.string.length == 0];

// reset typing attribtues if the text was emptied
if(textView.textStorage.string.length == 0) {
textView.typingAttributes = defaultTypingAttributes;
}
// set recentlyChangedRange and check for changes
recentlyChangedRange = NSMakeRange(0, textView.textStorage.string.length);
[self anyTextMayHaveBeenModified];
}

- (void)emitOnLinkDetectedEvent:(NSString *)text url:(NSString *)url {
Expand Down
Loading