I've created a fairly simple plugin, with much success. However, I'm getting "undefined", as my page title (and page header in the blue dialog box).
I've added a lang folder inside my plugin folder. in en.js I have the following line
FCKLang.ImgLibDlgTitle = 'Image Library';
In the FCKPlugin.js I register with this line:
FCKCommands.RegisterCommand( 'Images', new FCKDialogCommand( 'Images', FCKLang.ImgLibDlgTitle, FCKPlugins.Items['Images'].Path + 'fck_Images.aspx', 500, 600 ) ) ;
I thought that the second paramater in FCKDialogCommand should be the title, but it doesn't seem to be working.
I also call the "translate page" function from the fck_images.aspx page:
var oEditor = window.parent.InnerDialogLoaded() ;
var FCKLang = oEditor.FCKLang ;
oEditor.FCKLanguageManager.TranslatePage( document ) ;
window.parent.SetOkButton( true ) ;
any help would be greatly appreciated!
I've added a lang folder inside my plugin folder. in en.js I have the following line
FCKLang.ImgLibDlgTitle = 'Image Library';
In the FCKPlugin.js I register with this line:
FCKCommands.RegisterCommand( 'Images', new FCKDialogCommand( 'Images', FCKLang.ImgLibDlgTitle, FCKPlugins.Items['Images'].Path + 'fck_Images.aspx', 500, 600 ) ) ;
I thought that the second paramater in FCKDialogCommand should be the title, but it doesn't seem to be working.
I also call the "translate page" function from the fck_images.aspx page:
var oEditor = window.parent.InnerDialogLoaded() ;
var FCKLang = oEditor.FCKLang ;
oEditor.FCKLanguageManager.TranslatePage( document ) ;
window.parent.SetOkButton( true ) ;
any help would be greatly appreciated!
Re: Problem setting plugin page title