Index: branches/RC/core/editor/editor/plugins/document/fckplugin.js =================================================================== diff -u -r10974 -r11852 --- branches/RC/core/editor/editor/plugins/document/fckplugin.js (.../fckplugin.js) (revision 10974) +++ branches/RC/core/editor/editor/plugins/document/fckplugin.js (.../fckplugin.js) (revision 11852) @@ -1,15 +1,8 @@ - - -var spDialog='document/document.html'; - var document_icon = FCKPlugins.Items['document'].Path + '/images/document.gif'; -FCKToolbarItems.RegisterItem( 'Document', new FCKToolbarButton( 'Document' , FCKLang.InsertDocumentLbl, FCKLang.InsertDocument, null, false, true, document_icon) ) ; -FCKCommands.RegisterCommand( 'Document', new FCKDialogCommand( 'Document', FCKLang.InsertDocument, FCKConfig.PluginsPath + spDialog, 475, 330 ) ) ; -//var dialog = window.parent ; -//var oDocument = dialog.InnerDialogLoaded(); +FCKToolbarItems.RegisterItem( 'Document', new FCKToolbarButton( 'Document' , FCKLang.InsertDocumentBtn, FCKLang.InsertDocumentBtn, null, false, true, document_icon) ) ; +FCKCommands.RegisterCommand( 'Document', new FCKDialogCommand( 'Document', FCKLang.DocumentDlgTitle, FCKPlugins.Items['document'].Path + 'document.html', 550, 330 ) ) ; - FCK.ContextMenu.RegisterListener( { AddItems : function( menu, tag, tagName ) { @@ -27,13 +20,11 @@ menu.AddSeparator() ; if ( bInsideLink ) { var id = oLink.getAttribute( 'id' , 2 ); - if (id && id.match(/^Doc_+/)) - { - menu.AddItem( 'Document', FCKLang.InsertDocument, document_icon ); + if (id && id.match(/^Doc_+/)) + { + menu.AddItem( 'Document', FCKLang.InsertDocumentBtn, document_icon ); } } } } }) ; - - \ No newline at end of file