CKEditor 4 Documentation

CKEDITOR.plugins.pastefromword.lists

Defined By

Properties

Numbering helper.

Numbering helper.

Defined By

Methods

CKEDITOR.plugins.pastefromword.lists
view source
( element ) : Numberprivate
Calculates the value for a given <li> element based on its precedent list items (e.g. ...

Calculates the value for a given <li> element based on its precedent list items (e.g. the value attribute). It could also look at the list parent (<ol>) at its start attribute.

Parameters

Returns

  • Number
CKEDITOR.plugins.pastefromword.lists
view source
( list, lists )private
Converts a single, flat list items array into an array with a hierarchy of items. ...

Converts a single, flat list items array into an array with a hierarchy of items.

As the list gets chopped, it will be forced to render as a separate list, even if it has a deeper nesting level. For example, for level 3 it will create a structure like ol > li > ol > li > ol > li.

Note that list items within a single list but with different levels that did not get chopped will still be rendered as a list tree later.

Parameters

CKEDITOR.plugins.pastefromword.lists
view source
( listElements )private
Final cleanup — removes all cke-* helper attributes. ...

Final cleanup — removes all cke-* helper attributes.

Parameters

CKEDITOR.plugins.pastefromword.lists
view source
( editor, element )private
Converts an element to an element with the cke:li tag name. ...

Converts an element to an element with the cke:li tag name.

Parameters

CKEDITOR.plugins.pastefromword.lists
view source
( root ) : CKEDITOR.htmlParser.element[]private
Converts any fake list items contained within root into real li elements. ...

Converts any fake list items contained within root into real li elements.

Parameters

Returns

CKEDITOR.plugins.pastefromword.lists
view source
( root ) : CKEDITOR.htmlParser.element[]private
...

Parameters

Returns

CKEDITOR.plugins.pastefromword.lists
view source
( element )private
Tries to determine the li[value] attribute for a given list item. ...

Tries to determine the li[value] attribute for a given list item. The element given must have a parent in order for this function to work properly.

Parameters

CKEDITOR.plugins.pastefromword.lists
view source
( element )private
...

Parameters

CKEDITOR.plugins.pastefromword.lists
view source
( list ) : Objectprivate
Returns Word-generated information about the given list item, mainly by parsing the mso-list CSS property. ...

Returns Word-generated information about the given list item, mainly by parsing the mso-list CSS property.

Note: Paragraphs with mso-list are also counted as list items because Word serves list items as paragraphs.

Parameters

Returns

  • Object

    ret

CKEDITOR.plugins.pastefromword.lists
view source
( symbol, type ) : Objectprivate
Returns an object describing the given symbol. ...

Returns an object describing the given symbol.

Parameters

  • symbol : String
  • type : String

Returns

  • Object

    ret

CKEDITOR.plugins.pastefromword.lists
view source
( listElement ) : Booleanprivate
Checks if this list is a direct continuation of a list interrupted by a list with a different ID, with a different le...

Checks if this list is a direct continuation of a list interrupted by a list with a different ID, with a different level. So if you look at a following list:

  • list1 level1
  • list1 level1
    • list2 level2
    • list2 level2
  • list1 level1

It would return true — meaning it is a continuation, and should not be chopped. However, if any paragraph or anything else appears in between, it should be broken into different lists.

You can see fixtures from issue #7918 as an example.

Parameters

Returns

  • Boolean
CKEDITOR.plugins.pastefromword.lists
view source
( editor, element ) : Booleanprivate
Checks if a given element is a list item-alike. ...

Checks if a given element is a list item-alike.

Parameters

Returns

  • Boolean