CKEditor показывает двойное подчеркивание (высота абзаца увеличена) - PullRequest
0 голосов
/ 12 февраля 2020

Загрузка таблицы HTML в CKeditor с помощью метода setData. CKEditor показывает таблицу по-другому по сравнению с оригиналом. P-тег, имеющий свойство border-bottom. И потомок этого тега - U-тег. Теперь оригинал показывает одно подчеркивание. CKEditor показывает двойное подчеркивание. Таблица HTML Элемент

    <table cellspacing="0" cellpadding="0" width="100%" border="0" style="BORDER-COLLAPSE:COLLAPSE" align="center">
   <tbody>
      <tr>
         <td width="51%"></td>
         <td valign="bottom" width="3%"></td>
         <td width="46%"></td>
      </tr>
      <tr style="page-break-inside:avoid">
         <td valign="bottom" nowrap="" align="center">
            <p style="border-bottom:1px solid #000000 ; display:table-cell;" align="center"><font style="font-family:Times New Roman" size="1"><b><u>Share Class</u></b></font></p>
         </td>
         <td valign="bottom"><font size="1">&nbsp;&nbsp;</font></td>
         <td valign="bottom" nowrap="" align="center">
            <p style="margin-top:0px;margin-bottom:0px" align="center"><font style="font-family:Times New Roman" size="1"><b>Distribution Fee and/or Service Fee</b></font></p>
            <p style="margin-top:0px;margin-bottom:0px" align="center"><font style="font-family:Times New Roman" size="1"><b>(as a % of average daily net</b></font></p>
            <p style="margin-top:0px;margin-bottom:1px;border-bottom:1px solid #000000 ; display:table-cell;" align="center"><font style="font-family:Times New Roman" size="1"><b><u>assets&nbsp;attributable&nbsp;to&nbsp;the&nbsp;
               class)</u></b></font>
            </p>
         </td>
      </tr>
      <tr style="page-break-inside:avoid">
         <td valign="top" align="center"><font style="font-family:Times New Roman" size="2">Class A</font></td>
         <td valign="bottom"><font size="1">&nbsp;&nbsp;</font></td>
         <td valign="bottom" align="center"><font style="font-family:Times New Roman" size="2">0.25%</font></td>
      </tr>
      <tr style="page-break-inside:avoid">
         <td valign="top" align="center"><font style="font-family:Times New Roman" size="2">Class T</font></td>
         <td valign="bottom"><font size="1">&nbsp;&nbsp;</font></td>
         <td valign="bottom" align="center"><font style="font-family:Times New Roman" size="2">0.25%</font></td>
      </tr>
      <tr style="page-break-inside:avoid">
         <td valign="top" align="center"><font style="font-family:Times New Roman" size="2">Class R</font></td>
         <td valign="bottom"><font size="1">&nbsp;&nbsp;</font></td>
         <td valign="bottom" align="center"><font style="font-family:Times New Roman" size="2">0.50%</font></td>
      </tr>
   </tbody>
</table>

Я знаю, мы можем добиться необходимого результата, добавив css. Но я не знаю, почему CKEditor показывает так.

...