Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/almazen2/assets/grocery_crud/texteditor/ckeditor/_source/plugins/placeholder/dialogs/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /*
* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
function placeholderDialog( editor, isEdit )
{
var lang = editor.lang.placeholder,
generalLabel = editor.lang.common.generalTab;
return {
title : lang.title,
minWidth : 300,
minHeight : 80,
contents :
[
{
id : 'info',
label : generalLabel,
title : generalLabel,
elements :
[
{
id : 'text',
type : 'text',
style : 'width: 100%;',
label : lang.text,
'default' : '',
required : true,
validate : CKEDITOR.dialog.validate.notEmpty( lang.textMissing ),
setup : function( element )
{
if ( isEdit )
this.setValue( element.getText().slice( 2, -2 ) );
},
commit : function( element )
{
var text = '[[' + this.getValue() + ']]';
// The placeholder must be recreated.
CKEDITOR.plugins.placeholder.createPlaceholder( editor, element, text );
}
}
]
}
],
onShow : function()
{
if ( isEdit )
this._element = CKEDITOR.plugins.placeholder.getSelectedPlaceHoder( editor );
this.setupContent( this._element );
},
onOk : function()
{
this.commitContent( this._element );
delete this._element;
}
};
}
CKEDITOR.dialog.add( 'createplaceholder', function( editor )
{
return placeholderDialog( editor );
});
CKEDITOR.dialog.add( 'editplaceholder', function( editor )
{
return placeholderDialog( editor, 1 );
});
} )();
|
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0051 ]-- |