Ticket #11427: 11427.html

File 11427.html, 960 bytes (added by Piotrek Koszuliński, 10 years ago)
Line 
1<!DOCTYPE html>
2<!--
3Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
4For 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>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy