IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
5 | 5 | |
6 | 6 | (function() |
7 | 7 | { |
| 8 | var isIERange = !window.getSelection; |
| 9 | |
8 | 10 | // #### checkSelectionChange : START |
9 | 11 | |
10 | 12 | // The selection change check basically saves the element parent tree of |
… |
… |
|
679 | 681 | * IE BUG: The selection's document may be a different document than the |
680 | 682 | * editor document. Return null if that is the case. |
681 | 683 | */ |
682 | | if ( CKEDITOR.env.ie ) |
| 684 | if ( isIERange ) |
683 | 685 | { |
684 | 686 | var range = this.getNative().createRange(); |
685 | 687 | if ( !range |
… |
… |
|
709 | 711 | * var selection = editor.getSelection().<strong>getNative()</strong>; |
710 | 712 | */ |
711 | 713 | getNative : |
712 | | CKEDITOR.env.ie ? |
| 714 | isIERange ? |
713 | 715 | function() |
714 | 716 | { |
715 | 717 | return this._.cache.nativeSel || ( this._.cache.nativeSel = this.document.$.selection ); |
… |
… |
|
739 | 741 | * alert( 'A text is selected' ); |
740 | 742 | */ |
741 | 743 | getType : |
742 | | CKEDITOR.env.ie ? |
| 744 | isIERange ? |
743 | 745 | function() |
744 | 746 | { |
745 | 747 | var cache = this._.cache; |
… |
… |
|
816 | 818 | */ |
817 | 819 | getRanges : (function() |
818 | 820 | { |
819 | | var func = CKEDITOR.env.ie ? |
| 821 | var func = isIERange ? |
820 | 822 | ( function() |
821 | 823 | { |
822 | 824 | function getNodeIndex( node ) { return new CKEDITOR.dom.node( node ).getIndex(); } |
… |
… |
|
1373 | 1375 | var text = '', |
1374 | 1376 | nativeSel = this.getNative(); |
1375 | 1377 | if ( this.getType() == CKEDITOR.SELECTION_TEXT ) |
1376 | | text = CKEDITOR.env.ie ? nativeSel.createRange().text : nativeSel.toString(); |
| 1378 | text = isIERange ? nativeSel.createRange().text : nativeSel.toString(); |
1377 | 1379 | |
1378 | 1380 | return ( cache.selectedText = text ); |
1379 | 1381 | }, |
… |
… |
|
1506 | 1508 | return; |
1507 | 1509 | } |
1508 | 1510 | |
1509 | | if ( CKEDITOR.env.ie ) |
| 1511 | if ( isIERange ) |
1510 | 1512 | { |
1511 | 1513 | if ( ranges.length > 1 ) |
1512 | 1514 | { |
… |
… |
|
1713 | 1715 | start.scrollIntoView(); |
1714 | 1716 | } |
1715 | 1717 | }; |
1716 | | })(); |
1717 | 1718 | |
1718 | | ( function() |
1719 | | { |
1720 | 1719 | var notWhitespaces = CKEDITOR.dom.walker.whitespaces( true ), |
1721 | 1720 | fillerTextRegex = /\ufeff|\u00a0/, |
1722 | 1721 | nonCells = { table:1,tbody:1,tr:1 }; |
1723 | 1722 | |
1724 | 1723 | CKEDITOR.dom.range.prototype.select = |
1725 | | CKEDITOR.env.ie ? |
| 1724 | isIERange ? |
1726 | 1725 | // V2 |
1727 | 1726 | function( forceExpand ) |
1728 | 1727 | { |
… |
… |
|
1844 | 1843 | { |
1845 | 1844 | this.document.getSelection().selectRanges( [ this ] ); |
1846 | 1845 | }; |
1847 | | } )(); |
| 1846 | })(); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
93 | 93 | |
94 | 94 | if ( CKEDITOR.env.ie ) |
95 | 95 | { |
96 | | var $sel = selection.getNative(); |
| 96 | var $sel = this.document.$.selection; |
97 | 97 | |
98 | 98 | // Delete control selections to avoid IE bugs on pasteHTML. |
99 | 99 | if ( $sel.type == 'Control' ) |