Changeset 5744
- Timestamp:
- 07/26/10 22:30:45 (3 years ago)
- Location:
- CKEditor/branches/versions/3.4.x/_source
- Files:
-
- 2 edited
-
core/dom/range.js (modified) (6 diffs)
-
plugins/styles/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/versions/3.4.x/_source/core/dom/range.js
r5712 r5744 398 398 var baseId; 399 399 var clone; 400 var collapsed = this.collapsed; 400 401 401 402 startNode = this.document.createElement( 'span' ); … … 414 415 415 416 // If collapsed, the endNode will not be created. 416 if ( ! this.collapsed )417 if ( !collapsed ) 417 418 { 418 419 endNode = startNode.clone(); … … 443 444 startNode : serializable ? baseId + 'S' : startNode, 444 445 endNode : serializable ? baseId + 'E' : endNode, 445 serializable : serializable 446 serializable : serializable, 447 collapsed : collapsed 446 448 }; 447 449 }, … … 466 468 endOffset = this.endOffset; 467 469 470 var collapsed = this.collapsed; 471 468 472 var child, previous; 469 473 … … 502 506 503 507 // Process the end only if not normalized. 504 if ( ! this.isCollapsed )508 if ( !collapsed ) 505 509 { 506 510 // Find out if the start is pointing to a text node that … … 533 537 return { 534 538 start : startContainer.getAddress( normalized ), 535 end : this.isCollapsed ? null : endContainer.getAddress( normalized ),539 end : collapsed ? null : endContainer.getAddress( normalized ), 536 540 startOffset : startOffset, 537 541 endOffset : endOffset, 538 542 normalized : normalized, 543 collapsed : collapsed, 539 544 is2 : true // It's a createBookmark2 bookmark. 540 545 }; -
CKEditor/branches/versions/3.4.x/_source/plugins/styles/plugin.js
r5715 r5744 1283 1283 func.call( this, range ); 1284 1284 1285 selection.selectBookmarks( bookmarks ); 1285 if ( bookmarks.length == 1 && bookmarks[0].collapsed ) 1286 { 1287 selection.selectRanges( ranges ); 1288 bookmarks[0].startNode.remove(); 1289 } 1290 else 1291 selection.selectBookmarks( bookmarks ); 1286 1292 } 1287 1293 })();
Note: See TracChangeset
for help on using the changeset viewer.
