IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
298 | 298 | CKEDITOR.dom.element.setMarker( database, itemNode, 'list_item_processed', true ); |
299 | 299 | } |
300 | 300 | |
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' ); |
307 | | |
| 301 | var listNode; |
308 | 302 | for ( i = 0 ; i < selectedListItems.length ; i++ ) |
309 | 303 | { |
310 | | var listIndex = selectedListItems[i].getCustomData( 'listarray_index' ); |
311 | | listArray[listIndex].parent = fakeParent; |
| 304 | var listIndex = selectedListItems[ i ].getCustomData( 'listarray_index' ); |
| 305 | listNode = listArray[ listIndex ].parent; |
| 306 | if ( !listNode.is( this.type ) ) |
| 307 | { |
| 308 | listNode.renameNode( this.type ); |
| 309 | listNode.removeStyle( 'list-style-type' ); |
| 310 | } |
312 | 311 | } |
313 | 312 | var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode ); |
314 | 313 | var child, length = newList.listNode.getChildCount(); |