Ticket #11365: 11365.html

File 11365.html, 1.4 KB (added by Olek Nowodziński, 10 years ago)

Sandbox

Line 
1<!DOCTYPE html>
2<!--
3Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
4For licensing, see LICENSE.html or http://ckeditor.com/license
5-->
6<html>
7<head>
8        <title>#11365</title>
9        <meta charset="utf-8">
10        <script src="../../ckeditor.js"></script>
11        <link href="../sample.css" rel="stylesheet">
12</head>
13<body>
14        <h1 class="samples">
15                <a href="index.html">CKEditor Samples</a> &raquo; #11365
16        </h1>
17        <textarea cols="80" id="editor1" name="editor1" rows="10">
18                <p>foo</p>
19                <img alt="map" src="../assets/sample.jpg" usemap="#somemap" />
20                <map id="somemap" name="somemap"><area coords="5,5,155,195" href="#" shape="rect" /></map>
21                <p>bar</p>
22        </textarea>
23        <script>
24
25                CKEDITOR.replace( 'editor1', {
26                        plugins: 'wysiwygarea,contextmenu',
27                        allowedContent: true,
28                        height: 400,
29                        on: {
30                                pluginsLoaded: function() {
31                                        this.addCommand( 'test', {} );
32
33                                        this.addMenuItems( {
34                                                test: {
35                                                        label: 'Foo',
36                                                        command: 'test',
37                                                        group: 'image'
38                                                }
39                                        } );
40
41                                        this.contextMenu.addListener( function( element, selection ) {
42                                                return {
43                                                        test: CKEDITOR.TRISTATE_OFF
44                                                };
45                                        } );
46
47                                },
48                                instanceReady: function() {
49                                        this.on( 'selectionChange', function( evt ) {
50                                                debugger;
51                                        } );
52                                        // this.editable().$.oncontextmenu = function() {
53                                        //      debugger;
54                                        // }
55                                }
56                        }
57                } );
58
59        </script>
60</body>
61</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy