paste-from-office/filters/list
@ckeditor/ckeditor5-paste-from-office/src/filters/list
module
Filtering
Functions
-
transformListItemLikeElementsIntoLists( documentFragment, stylesString )
static
Transforms Word specific list-like elements to the semantic HTML lists.
Lists in Word are represented by block elements with special attributes like:
<p class=MsoListParagraphCxSpFirst style='mso-list:l1 level1 lfo1'>...</p> // Paragraph based list. <h1 style='mso-list:l0 level1 lfo1'>...</h1> // Heading 1 based list.
Parameters
documentFragment : DocumentFragment
The view structure to be transformed.
stylesString : String
Styles from which list-like elements styling will be extracted.
-
unwrapParagraphInListItem( documentFragment, writer )
static
Removes paragraph wrapping content inside a list item.
Parameters
documentFragment : DocumentFragment
writer : UpcastWriter