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 ?
還沒有人認領這個 Issue。
評估
研究方向
從 TextViewAttachmentDelegate 協定和 issue 中描述的 sourcecode 按鈕切換開始。在不編輯 HTML 的情況下重現從 HTML 切換到 UITextView,然後追蹤 deletedAttachment 何時被呼叫。完成標準是解釋該 callback,或在保留實際 attachment 刪除的 callback 的同時,阻止錯誤的刪除 callback。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Swift
- 星號
- 666
- 分支
- 154
- 平均合併
- 1 天 13 小時
- 30 天內合併 PR
- 5
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
wordpress-mobile/AztecEditor-iOS 的其他 Issue
-
Bug
難度 3/5 1-2 天 新手友好度 45/100
wordpress-mobile/AztecEditor-iOS#1417 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
wordpress-mobile/AztecEditor-iOS#1411 ·
-
iOS 17 Crash - UIGraphicsBeginImageContext() failed to allocate CGBitampContext可能重新可做 @jkmassel 於 648 天前認領,目前沒有進行中的 PR。 未關閉
wordpress-mobile/AztecEditor-iOS#1401 · 2 則留言 · 已指派 1 人 ·
-
難度 3/5 1-2 天 新手友好度 35/100
wordpress-mobile/AztecEditor-iOS#1399 ·
-
難度 3/5 1-2 天 新手友好度 35/100
wordpress-mobile/AztecEditor-iOS#1398 · 1 則留言 · 1 個 reaction ·
查看 wordpress-mobile/AztecEditor-iOS 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
-
難度 2/5 1-3 小時 新手友好度 72/100
apache/arrow-swift#209 ·
維護者通常 1 天內回覆
-
NemotronH: float32 identity weight in gated RMSNorm makes all activations float32 (~3x slower decode)可能已有人在做 @Augustas11 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
ml-explore/mlx-swift-lm#751 ·
維護者通常 2 天內回覆