wordpress-mobile / wordpress-mobile/AztecEditor-iOS

HTML mode: Adding new lines within <td> tags generates extra, unwanted <td> tags

Offen
#930 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

[Type] Bug
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
  1. Navigate to the editor for a post and switch to the HTML view.
  2. Copy/paste the following HTML code to create a table:
<table>
<tbody>
<tr>
<td>AB</td>
<td></td>
</tr>
</tbody>
</table>
  1. Now add some line breaks between A and B:
<table>
<tbody>
<tr>
<td>A

B</td>
<td></td>
</tr>
</tbody>
</table>
  1. 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

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Ö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

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.