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 ?
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
Piste de recherche
Commencez par le protocole TextViewAttachmentDelegate et la transition du bouton sourcecode décrite dans l’issue. Reproduisez le passage de HTML à UITextView sans modifier le HTML, puis déterminez quand deletedAttachment est appelé. Le travail est terminé lorsque le callback est expliqué ou qu’un callback de suppression intempestif est empêché, tout en préservant les callbacks pour les suppressions réelles d’attachments.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Swift
- Étoiles
- 667
- Forks
- 153
- Merge moyen
- 2 j 6 h
- PR mergées (30 j)
- 4
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de wordpress-mobile/AztecEditor-iOS
-
Bug
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
wordpress-mobile/AztecEditor-iOS#1417 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
wordpress-mobile/AztecEditor-iOS#1411 ·
-
iOS 17 Crash - UIGraphicsBeginImageContext() failed to allocate CGBitampContextPeut-être à nouveau libre @jkmassel l’a pris il y a 623 jours, et aucune pull request n’est ouverte. Ouverte
wordpress-mobile/AztecEditor-iOS#1401 · 2 commentaires · 1 personne assignée ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
wordpress-mobile/AztecEditor-iOS#1399 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
wordpress-mobile/AztecEditor-iOS#1398 · 1 commentaire · 1 réaction ·
Toutes les issues de wordpress-mobile/AztecEditor-iOS
Issues similaires
-
Bug 🐞
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
mozilla-mobile/firefox-ios#35986 ·
Les mainteneurs répondent en général sous 1 jour
-
Reading an empty file leaks a 4 KB buffer on Linux (Data(contentsOf:), String(contentsOfFile:))Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
swiftlang/swift-foundation#2304 ·
Les mainteneurs répondent en général sous 1 jour
-
area:caching bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
axeslasher/Jelly-Shark#321 ·
Les mainteneurs répondent en général sous 1 jour
-
[iOS] Script init caches the wrong view model when dataBind is applied after state-machine creationPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
rive-app/rive-nitro-react-native#414 ·
Les mainteneurs répondent en général sous 1 jour
-
type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
googleapis/google-cloud-swift#1412 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour