Вход Регистрация
Файл: public/js/3rd_party/ckeditor/plugins/placeholder/dialogs/placeholder.js
Строк: 60
<?php

/*
 * Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

(function()
{
    function 
placeholderDialogeditorisEdit )
    {

        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.notEmptylang.textMissing ),
                            
setup : function( element )
                            {
                                if ( 
isEdit )
                                    
this.setValueelement.getText().slice2, -) );
                            },
                            
commit : function( element )
                            {
                                var 
text '[[' this.getValue() + ']]';
                                
// The placeholder must be recreated.
                                
CKEDITOR.plugins.placeholder.createPlaceholdereditorelementtext );
                            }
                        }
                    ]
                }
            ],
            
onShow : function()
            {
                if ( 
isEdit )
                    
this._element CKEDITOR.plugins.placeholder.getSelectedPlaceHodereditor );

                
this.setupContentthis._element );
            },
            
onOk : function()
            {
                
this.commitContentthis._element );
                
delete this._element;
            }
        };
    }

    
CKEDITOR.dialog.add'createplaceholder', function( editor )
        {
            return 
placeholderDialogeditor );
        });
    
CKEDITOR.dialog.add'editplaceholder', function( editor )
        {
            return 
placeholderDialogeditor);
        });
} )();
?>
Онлайн: 2
Реклама