Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Autoría | Ultima modificación | Ver Log |

CKEDITOR.plugins.add( 'leaderslinked', {
        icons: 'leaderslinked',
        requires : ['richcombo'],
        init : function( editor )
        {
                editor.ui.addRichCombo('Leaderslinked', 
                {
                        label : 'Email', 
                    title : 'Insert a field to email.',
                    multiSelect: false,
                    panel: { 
                css: [CKEDITOR.getUrl('skins/moono-lisa/editor.css')].concat(editor.config.contentsCss)
            },
            init : function () {
                                this.add('[firstname]', 'Firstname', 'Firstname');            
                                this.add('[lastname]', 'Lastname', 'Lastname');      
                                this.add('[other_user_firstname]', 'Other User Firstname', 'Other User Firstname');            
                                this.add('[other_user_lastname]', 'Other User Lastname', 'Other User Lastname');           
                                this.add('[code]', 'Code', 'Code');            
                                this.add('[link]', 'Link', 'Link'); 
                                this.add('[company_name]', 'Company name', 'Company name'); 
                                this.add('[group_name]', 'Group name', 'Group name');         
                                this.add('[content]', 'Content', 'Content');           
          
                        },
                        onClick : function(value) {
                        editor.fire('saveSnapshot');
                        editor.insertHtml(value);
                        }                           
                })
        }
});