From 6633dc30c1ffb54efbd9e6f88d667f2f1b82148f Mon Sep 17 00:00:00 2001 From: Gerardo Pacheco Date: Mon, 17 Jun 2024 16:03:27 +0200 Subject: [PATCH] [Mobile] - Fix issues when pasting HTML content (#62588) * iOS - readHTML remove DOCTYPE check since pasteHandler handles it * Update changelog --- .../react-native-aztec/ios/RNTAztecView/RCTAztecView.swift | 6 +----- packages/react-native-editor/CHANGELOG.md | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift b/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift index 6304939b768a50..03362c3a371fb2 100644 --- a/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift +++ b/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift @@ -245,12 +245,8 @@ class RCTAztecView: Aztec.TextView { } private func readHTML(from pasteboard: UIPasteboard) -> String? { - if let data = pasteboard.data(forPasteboardType: kUTTypeHTML as String), let html = String(data: data, encoding: .utf8) { - // Make sure we are not getting a full HTML DOC. We only want inner content - if !html.hasPrefix("