]>
git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blob - sources/plugins/clipboard/dev/console.js
2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
11 var pasteType
, pasteValue
;
13 CKCONSOLE
.add( 'paste', {
18 '<ul class="ckconsole_list">' +
19 '<li>type: <span class="ckconsole_value" data-value="type"></span></li>' +
20 '<li>value: <span class="ckconsole_value" data-value="value"></span></li>' +
31 refreshOn: function( editor
, refresh
) {
32 editor
.on( 'paste', function( evt
) {
33 pasteType
= evt
.data
.type
;
34 pasteValue
= CKEDITOR
.tools
.htmlEncode( evt
.data
.dataValue
);
41 on: function( editor
, log
, logFn
) {
42 editor
.on( 'paste', function( evt
) {
43 logFn( 'paste; type:' + evt
.data
.type
)();