wordpress-mobile / wordpress-mobile/AztecEditor-iOS
HTML mode: Adding new lines within <td> tags generates extra, unwanted <td> tags
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Swift
- Sterne
- 669
- Forks
- 153
- Ø Merge
- 11 Std. 27 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Expected behavior
When creating tables, I would like any content that I add within a tag to remain within that tag so that it looks like the content is in one table cell after saving. I'd expect to be able to add content to a table cell that includes multiple paragraphs or line breaks.
Actual behavior
If I add line breaks to content within one tag/table cell, then extra, unwanted tags are generated.
Steps to reproduce the behavior
- Navigate to the editor for a post and switch to the HTML view.
- Copy/paste the following HTML code to create a table:
<table>
<tbody>
<tr>
<td>AB</td>
<td></td>
</tr>
</tbody>
</table>
- Now add some line breaks between A and B:
<table>
<tbody>
<tr>
<td>A
B</td>
<td></td>
</tr>
</tbody>
</table>
- Save your changes then view the HTML again. You'll see that extra tags are added:
<table>
<tbody>
<tr>
<td>A</td>
<td>B</td>
<td></td>
</tr>
</tbody>
</table>
Tested on iPad Mini, iOS 11.3, Aztec 9.6.1
Reported in 272318-h.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne in der HTML-Ansicht und reproduziere das Tabellenbeispiel aus dem Issue auf iOS. Untersuche anschließend den Speichern-und-Neuladen-Pfad, der vom Aztec-Editor verwendet wird. Erledigt bedeutet, dass die Zeilenumbrüche zwischen A und B innerhalb eines -Elements verbleiben und das gespeicherte HTML keine zusätzlichen Zellen mehr erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- html, swift
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100