table/converters/upcasttable
Functions
ensureParagraphInTableCell( elementName ) → ( dispatcher: UpcastDispatcher ) => voidinternalmodule:table/converters/upcasttable~ensureParagraphInTableCellA converter that ensures an empty paragraph is inserted in a table cell if no other content was converted.
Parameters
elementName : string
Returns
( dispatcher: UpcastDispatcher ) => voidConversion helper.
skipEmptyTableRow() → ( dispatcher: UpcastDispatcher ) => voidinternalmodule:table/converters/upcasttable~skipEmptyTableRowA conversion helper that skips empty elements from upcasting at the beginning of the table.
An empty row is considered a table model error but when handling clipboard data there could be rows that contain only row-spanned cells and empty TR-s are used to maintain the table structure (also
TableWalkerassumes that there are only rows that have relatedtableRowelements).Note: Only the first empty rows are removed because they have no meaning and it solves the issue of an improper table with all empty rows.
Returns
( dispatcher: UpcastDispatcher ) => voidConversion helper.
upcastTable() → ( dispatcher: UpcastDispatcher ) => voidinternalmodule:table/converters/upcasttable~upcastTableView table element to model table element conversion helper.
This conversion helper converts the table element as well as table rows.
Returns
( dispatcher: UpcastDispatcher ) => voidConversion helper.
upcastTableFigure() → ( dispatcher: UpcastDispatcher ) => voidinternalmodule:table/converters/upcasttable~upcastTableFigureReturns a function that converts the table view representation:
<figure class="table"><table>...</table></figure>Copy codeto the model representation:
<table></table>Copy codeReturns
( dispatcher: UpcastDispatcher ) => void