From 12ab2f04ef1b7d4d015061e95c7efc1c41b3c3c2 Mon Sep 17 00:00:00 2001 From: iceHood Date: Tue, 10 Dec 2024 16:32:34 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=94=84=EB=A6=AC=EB=B7=B0?= =?UTF-8?q?=EA=B0=80=20=EC=A0=9C=EB=8C=80=EB=A1=9C=20=EB=9C=A8=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MHPresentation/Source/EditBook/View/EditPageCell.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/View/EditPageCell.swift b/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/View/EditPageCell.swift index 96b118b..f049208 100644 --- a/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/View/EditPageCell.swift +++ b/MemorialHouse/MHPresentation/MHPresentation/Source/EditBook/View/EditPageCell.swift @@ -158,6 +158,7 @@ final class EditPageCell: UITableViewCell { let attachmentString = NSAttributedString(attachment: mediaAttachment) // Placeholder(공백) 교체 mutableAttributedString.replaceCharacters(in: range, with: attachmentString) + mediaAttachment.dataSource = self } mutableAttributedString.addAttributes( @@ -264,6 +265,7 @@ final class EditPageCell: UITableViewCell { shouldChangeTextIn: NSRange(location: textStorage.length, length: 0), replacementText: text ) else { return } + attachment.dataSource = self textStorage.beginEditing() textStorage.append(text) textStorage.endEditing()