Skip to content

Commit

Permalink
refactor: 프리뷰가 제대로 뜨도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
iceHood committed Dec 10, 2024
1 parent 14cbd29 commit 12ab2f0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 12ab2f0

Please sign in to comment.