|
Server IP : 124.109.2.77 / Your IP : 216.73.216.49 Web Server : Apache/2 System : Linux ns4.amiprocorp.com 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : cpctlp ( 1020) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 329 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 335 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 341 OFF Directory (0755) : /home/cpctlp/domains/cpctlphp.com/public_html/ckeditor4.10.1/plugins/widget/dev/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* global CKCONSOLE */
'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 & 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>' );
} )();