Hi there,
I've got a problem with my brand new dialogbox plugin.
This plugin has to display a ckeditor panel to let the user encode a text.
The ckeditor panel displays correctly but some toolbar buttons don't work at all.
(font drop down list, font size list, font color and background color)
What am I doing wrong?
Thanks for any help, Léon
Here is the code of the plugin
I've got a problem with my brand new dialogbox plugin.
This plugin has to display a ckeditor panel to let the user encode a text.
The ckeditor panel displays correctly but some toolbar buttons don't work at all.
(font drop down list, font size list, font color and background color)
What am I doing wrong?
Thanks for any help, Léon
Here is the code of the plugin
CKEDITOR.dialog.add('signature', function(editor) {
return {
title: 'Signature',
minWidth: 450,
minHeight: 300,
contents: [
{
id: 'dialog_plugin',
label: '',
title: '',
expand: true,
padding: 0,
elements:
[
{
type: 'html',
html: '<textarea id="signeditor" name="signeditor"><p>Initial value.</p></textarea>',
onLoad:function(){
CKEDITOR.replace( 'signeditor',
{
toolbar :
[
['NewPage'],
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','Find','Replace'],
['Link','Unlink'],
'/',
['Font','FontSize'],
['resetfont','Bold','Italic','Underline'],
['TextColor','BGColor'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['NumberedList','BulletedList','-','Outdent','Indent']
],
resize_enabled : true,
scayt_autoStartup: true,
scayt_sLang : 'fr_FR',
font_names : 'Arial,Comic Sans MS,Courrier New,Georgia,Lucida sans Unicode,Tahoma,Times New Roman,Verdana',
font_defaultLabel : 'Verdana',
fontSize_defaultLabel: '11px',
height : 250,
width : 430,
removePlugins : 'elementspath'
});
}
}
]
}
]
};
});
Re: plugins issue
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!