issue adding custom button in Firefox.

  •  03-27-2012, 12:49 PM

    issue adding custom button in Firefox.

    Following code works fine for IE, but not for Firefox ::
     

    int pos = Editor1.ToolControls.IndexOf("InsertEmotion") + 1;

    WebControl ctrl = Editor1.CreateCommandButton("BtnInsertImage", "image.gif", "Insert Image");

    ctrl.Attributes.Add("onclick", "return insertImageButtonClick()");

    Editor1.InsertToolControl(pos, "BtnInsertImage", ctrl);
     
    On button click we are getting this alert - Command 'BtnInsertImage' Is Not Supported Or Not Implemented
     
View Complete Thread