Insertion of pictures half finished
SVN revision: 1925
This commit is contained in:
@@ -46,6 +46,30 @@ oELOGSubmitCommand.GetState = function()
|
||||
|
||||
FCKCommands.RegisterCommand('ELOGSubmit', oELOGSubmitCommand);
|
||||
|
||||
/*---- 'ELOGImage' ------------------------------------------------*/
|
||||
|
||||
// Register 'ELOGImage' toolbar button
|
||||
var oELOGImage = new FCKToolbarButton('ELOGImage', 'Insert Image', null, null, true, null, 37);
|
||||
FCKToolbarItems.RegisterItem('ELOGImage', oELOGImage);
|
||||
|
||||
// Register 'ELOGImage' command
|
||||
var oELOGImageCommand = new Object();
|
||||
oELOGImageCommand.Name = 'ELOGImage';
|
||||
|
||||
oELOGImageCommand.Execute = function()
|
||||
{
|
||||
window.open('../../'+parent.logbook+'/upload.html?next_attachment='+parent.next_attachment, '',
|
||||
'top=280,left=350,width=500,height=120,dependent=yes,menubar=no,status=no,scrollbars=no,location=no,resizable=yes');
|
||||
}
|
||||
|
||||
oELOGImageCommand.GetState = function()
|
||||
{
|
||||
// This function is always enabled.
|
||||
return FCK_TRISTATE_OFF ;
|
||||
}
|
||||
|
||||
FCKCommands.RegisterCommand('ELOGImage', oELOGImageCommand);
|
||||
|
||||
/*---- 'InsertTime' ------------------------------------------------*/
|
||||
|
||||
// Create 'InsertTime' toolbar button
|
||||
|
||||
@@ -13,7 +13,7 @@ FCKConfig.ToolbarSets["Default"] = [
|
||||
['OrderedList','UnorderedList','-','Outdent','Indent'],
|
||||
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
|
||||
['Link','Unlink','Anchor'],
|
||||
['Image','Table','Rule','Smiley','SpecialChar','InsertTime'],
|
||||
['ELOGImage','Table','Rule','Smiley','SpecialChar','InsertTime'],
|
||||
['Style','FontFormat','FontName','FontSize'],
|
||||
['TextColor','BGColor'],
|
||||
['About']
|
||||
|
||||
Reference in New Issue
Block a user