IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
299 | 299 | } |
300 | 300 | |
301 | 301 | var root = groupObj.root, |
302 | | fakeParent = root.getDocument().createElement( this.type ); |
303 | | // Copy all attributes, except from 'start' and 'type'. |
304 | | root.copyAttributes( fakeParent, { start : 1, type : 1 } ); |
305 | | // The list-style-type property should be ignored. |
306 | | fakeParent.removeStyle( 'list-style-type' ); |
| 302 | doc = root.getDocument(), |
| 303 | listNode, |
| 304 | newListNode; |
307 | 305 | |
308 | 306 | for ( i = 0 ; i < selectedListItems.length ; i++ ) |
309 | 307 | { |
310 | 308 | var listIndex = selectedListItems[i].getCustomData( 'listarray_index' ); |
311 | | listArray[listIndex].parent = fakeParent; |
312 | | } |
| 309 | listNode = listArray[ listIndex ].parent; |
| 310 | |
| 311 | // Switch to new list node for this particular item. |
| 312 | if ( !listNode.is( this.type ) ) |
| 313 | { |
| 314 | newListNode = doc.createElement( this.type ); |
| 315 | // Copy all attributes, except from 'start' and 'type'. |
| 316 | listNode.copyAttributes( newListNode, { start : 1, type : 1 } ); |
| 317 | // The list-style-type property should be ignored. |
| 318 | newListNode.removeStyle( 'list-style-type' ); |
| 319 | listArray[ listIndex ].parent = newListNode; |
| 320 | } |
| 321 | } |
| 322 | |
313 | 323 | var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode ); |
314 | 324 | var child, length = newList.listNode.getChildCount(); |
315 | 325 | for ( i = 0 ; i < length && ( child = newList.listNode.getChild( i ) ) ; i++ ) |