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 ?
まだ誰も着手していません。
評価
調査の方向性
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時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 が 623 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
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 件 ·
wordpress-mobile/AztecEditor-iOS の issue をすべて見る
似ている issue
-
Bug 🐞
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mozilla-mobile/firefox-ios#35986 ·
メンテナーはふだん 1 日以内に返信
-
Reading an empty file leaks a 4 KB buffer on Linux (Data(contentsOf:), String(contentsOfFile:))オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
swiftlang/swift-foundation#2304 ·
メンテナーはふだん 1 日以内に返信
-
area:caching bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
axeslasher/Jelly-Shark#321 ·
メンテナーはふだん 1 日以内に返信
-
[iOS] Script init caches the wrong view model when dataBind is applied after state-machine creation対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
rive-app/rive-nitro-react-native#414 ·
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
googleapis/google-cloud-swift#1412 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信