Hi
I have a problem with the context menu sample provided in the sample plugin folder.
When i try to integrate it, it registres fine. When i right-click in the editor, the function below is called as i should by the editor, but the "tag" and "tagName" parameter is undefined, no matter which element is selected in the editor.
sample code:
// This is the standard function called right before showing the context menu.
oMyContextMenuListener.AddItems = function( contextMenu, tag, tagName )
{
// Let's show our custom option only for images.
if ( tagName == 'IMG' )
{
contextMenu.AddSeparator() ;
contextMenu.AddItem( 'OpenImage', 'Open image in a new window (Custom)' ) ;
}
}
Tested using FCKEditor 2.3 and both FF and IE
Anybody know what it could be?
regards
I have a problem with the context menu sample provided in the sample plugin folder.
When i try to integrate it, it registres fine. When i right-click in the editor, the function below is called as i should by the editor, but the "tag" and "tagName" parameter is undefined, no matter which element is selected in the editor.
sample code:
// This is the standard function called right before showing the context menu.
oMyContextMenuListener.AddItems = function( contextMenu, tag, tagName )
{
// Let's show our custom option only for images.
if ( tagName == 'IMG' )
{
contextMenu.AddSeparator() ;
contextMenu.AddItem( 'OpenImage', 'Open image in a new window (Custom)' ) ;
}
}
Tested using FCKEditor 2.3 and both FF and IE
Anybody know what it could be?
regards
RE: "custom context menu" plugin sample