first commit

This commit is contained in:
2026-02-28 11:43:07 +01:00
commit 1946f96bf8
5772 changed files with 817711 additions and 0 deletions

View File

@@ -0,0 +1,129 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
'use strict';
( function() {
CKCONSOLE.add( 'widget', {
panels: [
{
type: 'box',
content: '<ul class="ckconsole_list ckconsole_value" data-value="instances"></ul>',
refresh: function( editor ) {
var instances = obj2Array( editor.widgets.instances );
return {
header: 'Instances (' + instances.length + ')',
instances: generateInstancesList( instances )
};
},
refreshOn: function( editor, refresh ) {
editor.widgets.on( 'instanceCreated', function( evt ) {
refresh();
evt.data.on( 'data', refresh );
} );
editor.widgets.on( 'instanceDestroyed', refresh );
}
},
{
type: 'box',
content:
'<ul class="ckconsole_list">' +
'<li>focused: <span class="ckconsole_value" data-value="focused"></span></li>' +
'<li>selected: <span class="ckconsole_value" data-value="selected"></span></li>' +
'</ul>',
refresh: function( editor ) {
var focused = editor.widgets.focused,
selected = editor.widgets.selected,
selectedIds = [];
for ( var i = 0; i < selected.length; ++i )
selectedIds.push( selected[ i ].id );
return {
header: 'Focus &amp; selection',
focused: focused ? 'id: ' + focused.id : '-',
selected: selectedIds.length ? 'id: ' + selectedIds.join( ', id: ' ) : '-'
};
},
refreshOn: function( editor, refresh ) {
editor.on( 'selectionCheck', refresh, null, null, 999 );
}
},
{
type: 'log',
on: function( editor, log, logFn ) {
// Add all listeners with high priorities to log
// messages in the correct order when one event depends on another.
// E.g. selectionChange triggers widget selection - if this listener
// for selectionChange will be executed later than that one, then order
// will be incorrect.
editor.on( 'selectionChange', function( evt ) {
var msg = 'selection change',
sel = evt.data.selection,
el = sel.getSelectedElement(),
widget;
if ( el && ( widget = editor.widgets.getByElement( el, true ) ) )
msg += ' (id: ' + widget.id + ')';
log( msg );
}, null, null, 1 );
editor.widgets.on( 'instanceDestroyed', function( evt ) {
log( 'instance destroyed (id: ' + evt.data.id + ')' );
}, null, null, 1 );
editor.widgets.on( 'instanceCreated', function( evt ) {
log( 'instance created (id: ' + evt.data.id + ')' );
}, null, null, 1 );
editor.widgets.on( 'widgetFocused', function( evt ) {
log( 'widget focused (id: ' + evt.data.widget.id + ')' );
}, null, null, 1 );
editor.widgets.on( 'widgetBlurred', function( evt ) {
log( 'widget blurred (id: ' + evt.data.widget.id + ')' );
}, null, null, 1 );
editor.widgets.on( 'checkWidgets', logFn( 'checking widgets' ), null, null, 1 );
editor.widgets.on( 'checkSelection', logFn( 'checking selection' ), null, null, 1 );
}
}
]
} );
function generateInstancesList( instances ) {
var html = '',
instance;
for ( var i = 0; i < instances.length; ++i ) {
instance = instances[ i ];
html += itemTpl.output( { id: instance.id, name: instance.name, data: JSON.stringify( instance.data ) } );
}
return html;
}
function obj2Array( obj ) {
var arr = [];
for ( var id in obj )
arr.push( obj[ id ] );
return arr;
}
var itemTpl = new CKEDITOR.template( '<li>id: <code>{id}</code>, name: <code>{name}</code>, data: <code>{data}</code></li>' );
} )();

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'ar', {
'move': 'Click and drag to move' // MISSING
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'ca', {
'move': 'Clicar i arrossegar per moure'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'cs', {
'move': 'Klepněte a táhněte pro přesunutí'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'cy', {
'move': 'Clcio a llusgo i symud'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'de', {
'move': 'Zum verschieben anwählen und ziehen'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'el', {
'move': 'Κάνετε κλικ και σύρετε το ποντίκι για να μετακινήστε'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'en-gb', {
'move': 'Click and drag to move'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'en', {
'move': 'Click and drag to move'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'es', {
'move': 'Dar clic y arrastrar para mover'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'fa', {
'move': 'کلیک و کشیدن برای جابجایی'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'fi', {
'move': 'Siirrä klikkaamalla ja raahaamalla'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'fr', {
'move': 'Cliquer et glisser pour déplacer'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'gl', {
'move': 'Prema e arrastre para mover'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'he', {
'move': 'לחץ וגרור להזזה'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'hr', {
'move': 'Klikni i povuci da pomakneš'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'hu', {
'move': 'Kattints és húzd a mozgatáshoz'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'it', {
'move': 'Fare clic e trascinare per spostare'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'ja', {
'move': 'ドラッグして移動'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'km', {
'move': 'ចុច​ហើយ​ទាញ​ដើម្បី​ផ្លាស់​ទី'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'ko', {
'move': '움직이려면 클릭 후 드래그 하세요'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'nb', {
'move': 'Klikk og dra for å flytte'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'nl', {
'move': 'Klik en sleep om te verplaatsen'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'no', {
'move': 'Klikk og dra for å flytte'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'pl', {
'move': 'Kliknij i przeciągnij, by przenieść.'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'pt-br', {
'move': 'Click e arraste para mover'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'pt', {
'move': 'Clique e arraste para mover'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'ru', {
'move': 'Нажмите и перетащите'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'sl', {
'move': 'Kliknite in povlecite, da premaknete'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'sv', {
'move': 'Klicka och drag för att flytta'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'tt', {
'move': 'Күчереп куер өчен басып шудырыгыз'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'uk', {
'move': 'Клікніть і потягніть для переміщення'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'zh-cn', {
'move': '点击并拖拽以移动'
} );

View File

@@ -0,0 +1,7 @@
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'widget', 'zh', {
'move': '拖曳以移動'
} );

File diff suppressed because it is too large Load Diff