CKEDITOR.replace( 'body',
{
filebrowserBrowseUrl : '/' + gPath + '/' + 'frmBrowseFiles?ReadForm',
filebrowserImageBrowseUrl : '/' + gPath + '/' + 'frmBrowseImages?ReadForm',
filebrowserLinkBrowseUrl : '/' + gPath + '/' + 'vGetLinks?OpenView',
skin: 'classic',
extraPlugins : 'dnewpage,dcopypage',
toolbar: [
['Source'],['Save','dNewPage','dCopyPage','Preview'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Image','Flash','Table','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format'],
['Bold','Italic','Strike'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['Link','Unlink','Anchor'],
['Maximize']
]
})
(function(){
var a = {
exec: function(c){
debugger;
if(c.checkDirty())
if(confirm('You will lose any unsaved changes!\n\nContinue?')==false)
return false;
window.location.href='/' + gPath + '/frmInfo?ReadForm';
}
}
b = 'dnewpage';
CKEDITOR.plugins.add(b, {
init: function(c){
var d = c.addCommand(b, a);
c.ui.addButton('dNewPage', {
label: c.lang.newPage,
icon: this.path + 'document-new.png',
command: b
});
}
});
})();
(function(){
var a = {
exec: function(c){
debugger;
if(c.checkDirty())
if(confirm('You will lose any unsaved changes!\n\nContinue?')==false)
return false;
window.location.href='/' + gPath + '/agentCopyDoc?OpenAgent&unid=' +gUNID;
}
}
b = 'dcopypage';
CKEDITOR.plugins.add(b, {
init: function(c){
var d = c.addCommand(b, a);
c.ui.addButton('dCopyPage', {
label: c.lang.copyPage,
icon: this.path + 'edit-copy.png',
command: b
});
}
});
})();
Re: Problems adding more then one plugin?
How do you go about it in such case?
Thanks!
/J