diff --git a/ios/ReactNativeRichTextEditorView.mm b/ios/ReactNativeRichTextEditorView.mm index 4aaa11935..702312390 100644 --- a/ios/ReactNativeRichTextEditorView.mm +++ b/ios/ReactNativeRichTextEditorView.mm @@ -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 {