wordpress-mobile / wordpress-mobile/AztecEditor-iOS
HTML mode: Adding new lines within <td> tags generates extra, unwanted <td> tags
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Swift
- Estrellas
- 669
- Forks
- 153
- Merge medio
- 11 h 27 min
- PR fusionados (30 d)
- 4
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza en la vista HTML y reproduce en iOS el ejemplo de tabla del issue. Después, inspecciona la ruta de guardado y recarga utilizada por el editor Aztec. Se considera terminado cuando los saltos de línea entre A y B permanecen dentro de un elemento y el HTML guardado ya no crea celdas adicionales.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- html, swift
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100