November Happy Hour will be moved to Thursday December 5th.

EditorPlugin initialise

Vote:
 

Hi guys, have written a custom plugin for the editor and trying to implement it.  I have followed the example here:

http://sdk.episerver.com/library/cms5/Developers%20Guide/How%20To/Create%20an%20editor%20Plug-in.htm

And also used the initialise code that I have found here:

http://code.google.com/p/lixr/source/browse/trunk/Meridium/Lixr/Editor/Tools/Lixr.cs?r=13

The problem I have is when I hit an editor with the tinyMCE area the initialise code never fires and nothing is presented in thet context menu (seems to still be the default IE9 one).

As I understood it the editor plugin initialise class should get picked up by virtue of the plugin definition and implemented interfaces, much like a GuiPlugin (have used these else where in the site fine).

Any ideas on what I should look for or what i might have incorrect?

My initialise code is:

[EditorPlugIn(DisplayName = "Embed Video",
                   Usage = ToolUsage.ContextMenu,
                   MenuGroup = "CopyPaste",
                   MenuIndex = 180                  
                   )]
    public class EmbedVideoPlugin : ToolBase, IInitializableTool
    {       
        void IInitializableTool.Initialize(HtmlEditor editor)
        {
            string dialogURL = editor.BaseURL + "/Editor/Dialogs/EmbedVideoDialog.aspx";
            ClientSideOnClick = String.Format("EmbedVideo(this,'{0}')", dialogURL);
            ClientScriptBlock = editor.GetScriptTag("/Editor/Scripts/EmbedVideo.js", true);
        }
    }

Cheers,

Adam

#51618
Jun 17, 2011 11:29
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.