wysiwyg-editor
wysiwyg-editor copied to clipboard
Inline Font Size in Table Cells Overridden by Editor Initialization Font Size in Second Column
Bug Description
When copying a date table (with 2 columns and 1 row) from the browser into Froala Editor, the text in the table cells behaves differently depending on the editor's initialization settings. Specifically, if a default font size is set during editor initialization, the inline font size in the first column is respected. Still, the second column’s text incorrectly adopts the editor’s default font size, even when the table tag has an inline font size.
Expected behavior.
When I paste a table with different inline font sizes in the columns, the text should retain its respective inline font sizes in both columns, regardless of the editor’s initialization settings.
Actual behavior.
The first column's inline font size is retained, but the second column's text incorrectly defaults to the editor's initialized font size, ignoring the table's inline font size.
URL
https://jsfiddle.net/m_hassan/f8yeodcp/12/
Steps to reproduce the problem.
- Create a simple table with 2 columns and 1 row in the browser.
- Column 1: Set an inline font size on the text.
- Column 2: Use the default font size.
- Copy the table and paste it into Froala Editor.
- Observe that the text retains the correct font size when no default font size is set during Froala Editor initialization.
- Set a default font size in Froala Editor during initialization.
- Paste the same table into the editor again.
- Notice that the inline font size of the first column is respected, but the text in the second column is set to the editor's default font size, despite the table tag having an inline font size.
Editor version.
v4.0.17
OS.
Window 10
Browser.
Chrome Firefox Edge