Why is func textView(_ textView: TextView, deletedAttachment attachment: MediaAttachment) in the TextViewAttachmentDelegate protocol being called when the user taps on the source code button and comes back to the editor view from html ?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu với protocol TextViewAttachmentDelegate và quá trình chuyển đổi của nút sourcecode được mô tả trong issue. Tái hiện việc chuyển từ HTML sang UITextView mà không chỉnh sửa HTML, sau đó theo dõi thời điểm deletedAttachment được gọi. Hoàn thành khi giải thích được callback hoặc ngăn chặn callback xóa không mong muốn, đồng thời vẫn giữ các callback cho những lần xóa attachment thực sự.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello, thanks for your help. This is a great library. I need to have a model object that represents the pictures in a AztecEditor view. So I need to keep the pictures in the aztecview and the model in sync. There is no problem for the model creation after selecting a picture for insertion, but I need a way to also delete from the model the pictures that get deleted by the user. I came across this in the implementation of the TextViewAttachmentDelegate protocol:
func textView(_ textView: TextView, deletedAttachment attachment: MediaAttachment) {},
that looks exactly what I need. The problem is, I have verified that this delegate method gets called also when switching from html editor to UITextView using the 'sourcecode' button. This breaks my logic. Is there a special reason why the method is called when switching from html to UITextView without even touching the html text before pressing the button ? Many thanks for your help.
- Ngôn ngữ chính
- Swift
- Star
- 667
- Fork
- 153
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wordpress-mobile/AztecEditor-iOS
-
Bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
wordpress-mobile/AztecEditor-iOS#1417 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
wordpress-mobile/AztecEditor-iOS#1411 ·
-
iOS 17 Crash - UIGraphicsBeginImageContext() failed to allocate CGBitampContextCó thể làm lại được @jkmassel đã nhận 621 ngày trước và không có pull request nào đang mở. Đang mở
wordpress-mobile/AztecEditor-iOS#1401 · 2 bình luận · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
wordpress-mobile/AztecEditor-iOS#1399 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
wordpress-mobile/AztecEditor-iOS#1398 · 1 bình luận · 1 reaction ·
Tất cả issue của wordpress-mobile/AztecEditor-iOS
Issue tương tự
-
needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
manaflow-ai/cmux#18074 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Auto upload leaves local photo copies when files already exist on the serverCó thể đã có người làm @whlsxl đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
product / databases
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
tw93/Mole#1695 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 85/100