191 | | // by pulling it off the screen, while this hack will make the paste-bin a control type element |
192 | | // and that become a selection plain later. |
193 | | if ( !CKEDITOR.env.ie && mode != 'html' ) |
194 | | { |
195 | | pastebin.setStyles( |
196 | | { |
197 | | position : 'absolute', |
198 | | left : '-1000px', |
199 | | // Position the bin exactly at the position of the selected element |
200 | | // to avoid any subsequent document scroll. |
201 | | top : sel.getStartElement().getDocumentPosition().y + 'px', |
202 | | width : '1px', |
203 | | height : '1px', |
204 | | overflow : 'hidden' |
205 | | }); |
206 | | } |
| 191 | // by pulling it off the screen. |
| 192 | pastebin.setStyles( |
| 193 | { |
| 194 | position : 'absolute', |
| 195 | left : '-1000px', |
| 196 | // Position the bin exactly at the position of the selected element |
| 197 | // to avoid any subsequent document scroll. |
| 198 | top : sel.getStartElement().getDocumentPosition().y + 'px', |
| 199 | width : '1px', |
| 200 | height : '1px', |
| 201 | overflow : 'hidden' |
| 202 | }); |