IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
108 | 108 | paragraphName = ( paragraphMode == CKEDITOR.ENTER_P ? 'p' : 'div' ); |
109 | 109 | while ( 1 ) |
110 | 110 | { |
111 | | var item = listArray[ currentIndex ]; |
| 111 | var item = listArray[ currentIndex ], |
| 112 | itemGrandParent = item.grandparent; |
112 | 113 | |
113 | 114 | orgDir = item.element.getDirection( 1 ); |
114 | 115 | |
… |
… |
|
144 | 145 | currentListItem.append( listData.listNode ); |
145 | 146 | currentIndex = listData.nextIndex; |
146 | 147 | } |
147 | | else if ( item.indent == -1 && !baseIndex && item.grandparent ) |
| 148 | else if ( item.indent == -1 && !baseIndex && itemGrandParent ) |
148 | 149 | { |
149 | | if ( listNodeNames[ item.grandparent.getName() ] ) |
| 150 | if ( listNodeNames[ itemGrandParent.getName() ] ) |
150 | 151 | currentListItem = item.element.clone( false, true ); |
151 | 152 | else |
152 | 153 | currentListItem = new CKEDITOR.dom.documentFragment( doc ); |
153 | 154 | |
154 | 155 | // Migrate all children to the new container, |
155 | 156 | // apply the proper text direction. |
156 | | var dirLoose = item.grandparent.getDirection( 1 ) != orgDir, |
157 | | needsBlock = currentListItem.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT && |
158 | | paragraphMode != CKEDITOR.ENTER_BR, |
| 157 | var dirLoose = itemGrandParent.getDirection( 1 ) != orgDir, |
159 | 158 | li = item.element, |
160 | 159 | className = li.getAttribute( 'class' ), |
161 | 160 | style = li.getAttribute( 'style' ); |
162 | 161 | |
| 162 | var needsBlock = currentListItem.type == |
| 163 | CKEDITOR.NODE_DOCUMENT_FRAGMENT && |
| 164 | ( paragraphMode != CKEDITOR.ENTER_BR || dirLoose || |
| 165 | style || className ); |
| 166 | |
163 | 167 | var child, count = item.contents.length; |
164 | 168 | for ( i = 0 ; i < count; i++ ) |
165 | 169 | { |
… |
… |
|
178 | 182 | |
179 | 183 | className && child.addClass( className ); |
180 | 184 | } |
181 | | else if ( dirLoose || needsBlock || style || className ) |
| 185 | else if ( needsBlock ) |
182 | 186 | { |
183 | 187 | // Establish new block to hold text direction and styles. |
184 | 188 | if ( !block ) |