0
votes

I'm trying to add a lightbox plugin to my ckeditor, but it won't work. I downloaded the plugin from here.

When I unzip it I have two files, first file I copy to the CKEditor plugin folder and the other one I copy to my root folder and I include the path to the lightbox_plus.js file in the head of my file. In the lightbox_plus.js file I changed path to the ligthbox folder to var LightboxPlus_rootpath = '';

I use custom config file for CKEditor. In in place to config.js I add config.extraPlugins = 'lightbox'; to my custom file. The file is :

CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'lightbox';

config.toolbarGroups = [
    { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
    { name: 'forms', groups: [ 'forms' ] },
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
    { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
    { name: 'insert', groups: [ 'insert' ] },
    { name: 'links', groups: [ 'links', 'lightbox' ] },
    { name: 'tools', groups: [ 'tools' ] },
    { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
    { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
    '/',
    '/',
    { name: 'styles', groups: [ 'styles' ] },
    { name: 'colors', groups: [ 'colors' ] },
    { name: 'others', groups: [ 'others' ] },
    { name: 'about', groups: [ 'about' ] }
];

config.removeButtons = 'Source,Save,Templates,NewPage,Preview,Print,Cut,Copy,Paste,PasteText,PasteFromWord,Find,Replace,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,HiddenField,ImageButton,BidiLtr,BidiRtl,Language,Flash,PageBreak,About';

};

The CKEditor is :

CKEDITOR.replace( 'txtEmailContent', {
    extraPlugins: 'imageuploader',
    customConfig: 'custom/ckeditor_config.js'
});

But nothing happends. I do not see icon for lightbox in the toolbar and I can't do anything.

Any suggestions?

1

1 Answers

0
votes

This is CKEditor 3 plugin, and a pretty antique one. If you are using CKEditor 4, try searching for similar functionality in the CKEditor 4 Add-ons Repository.