1 | <!DOCTYPE html> |
---|
2 | <!-- |
---|
3 | Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. |
---|
4 | For licensing, see LICENSE.md or http://ckeditor.com/license |
---|
5 | --> |
---|
6 | <html> |
---|
7 | <head> |
---|
8 | <meta charset="utf-8"> |
---|
9 | <title>#11427</title> |
---|
10 | <script src="../ckeditor.js"></script> |
---|
11 | <link href="sample.css" rel="stylesheet"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <h1 class="samples"> |
---|
15 | #11427 |
---|
16 | </h1> |
---|
17 | |
---|
18 | <p>Select text from "START HERE" to the beginnig of editable, press delete and move mouse over "Boom!".</p> |
---|
19 | |
---|
20 | <div id="boom" style="border: solid 2px red; padding: 20px">Boom!</div> |
---|
21 | |
---|
22 | <div id="editable" contenteditable="true"> |
---|
23 | <p><img alt="Saturn V carrying Apollo 11" style="float: right" src="assets/sample.jpg" /> Foo</p> |
---|
24 | |
---|
25 | <p><b>START HERE</b></p> |
---|
26 | </div> |
---|
27 | |
---|
28 | <script> |
---|
29 | CKEDITOR.disableAutoInline = true; |
---|
30 | |
---|
31 | CKEDITOR.document.getById( 'boom' ).on( 'mouseover', function() { |
---|
32 | new CKEDITOR.dom.selection( CKEDITOR.document.getById( 'editable' ) ).getRanges(); |
---|
33 | } ) |
---|
34 | </script> |
---|
35 | </body> |
---|
36 | </html> |
---|