Additional information:
Me need this functional in DotNetNuke portal.
I try to change CE provider code:
in end of function
Public Overrides Sub Initialize()
I append this code:
Dim ctrl As System.Web.UI.WebControls.WebControl
ctrl = cntlCE.CreateCommandButton("InsertImageProcessor", "text.gif", "Insert main image")
ctrl.Attributes("onclick") = "var editor = document.getElementById('" & cntlCE.ClientID & "'); alert('" & cntlCE.ClientID & "');"
'get the pos after the InsertImage
Dim pos As Integer
pos = cntlCE.ToolControls.IndexOf("InsertImage") + 1
cntlCE.InsertToolControl(pos, "InsertImageProcessor", ctrl)
In result I have Error:
A critical error has occurred.
Object instance not set to ... ... ...
Help - What I do wrong?