Ticket #5563: disableResize.html

File disableResize.html, 1.1 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Test file

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html>
3<head>
4        <title>Resizing objects and editing tables</title>
5        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
6        <style type="text/css">
7               
8        </style>
9        <script type="text/javascript">
10                function init()
11                {
12                        var doc = window.document;
13                        doc.execCommand( 'enableObjectResizing', false, false ) ; 
14                        doc.execCommand( 'enableInlineTableEditing', false, false ) ; 
15                }
16
17                window.onload = init;
18        </script>
19</head>
20<body contentEditable="true">
21
22                <img src="http://profile.ak.fbcdn.net/object2/256/70/s167944609085_5092.jpg" alt="test image" id="image">
23
24                <table border="1" cellpadding="1" cellspacing="1" style="width: 200px;">
25                        <tbody>
26                                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
27                                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
28                                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
29                        </tbody>
30                </table>
31
32<p>The above elements can't be resized or edited in Firefox, even if the body is using contentEditable<br>
33
34</p>
35</body>
36</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy