wordpress-mobile / wordpress-mobile/AztecEditor-iOS
HTML mode: Adding new lines within <td> tags generates extra, unwanted <td> tags
オープン
まだ誰も着手していません。
[Type] Bug
- 主要言語
- Swift
- スター
- 669
- フォーク
- 153
- 平均マージ
- 11時間 27分
- マージ済み PR(30日)
- 4
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
HTML ビューから開始し、iOS で issue の表の例を再現してから、Aztec エディターが使用する保存と再読み込みの経路を調べます。A と B の間の改行が 1 つの 要素内に残り、保存された HTML が余分なセルを作成しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- html, swift
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100