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
- 星标
- 667
- 派生
- 153
- 平均合并
- 2 天 6 小时
- 30 天内合并 PR
- 4
环境准备
- 没有 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 于 622 天前认领,目前没有进行中的 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
-
🚀 [firebase_core] Bump Firebase iOS SDK (12.19.0 → 13.0.0)可能已有人在做 @SelaseKay 今天认领。 未关闭Needs Attention type: enhancement
难度 2/5 1-3 小时 新手友好度 66/100
firebase/flutterfire#18769 · 1 条评论 ·
维护者通常 1 天内回复
-
🎉 Add Nijia未关闭addition
难度 1/5 1-3 小时 新手友好度 68/100
jaywcjlove/awesome-mac#3269 ·
维护者通常 1 天内回复
-
Native HTTP policy fixture rejects its pathless response URL可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug fixed (pending release)
难度 2/5 1-3 小时 新手友好度 65/100
vorssaint/vorssaint-utils#2810 · 1 条评论 ·
维护者通常 1 天内回复