Help me create solution ???

Last post 09-29-2009, 3:03 AM by Virt. 4 replies.
Sort Posts: Previous Next
  •  09-27-2009, 11:19 AM 55901

    Help me create solution ???

    Hello!
     
    I have a task (extend CuteEditor.NET with custom functionality). Me need:
    1) Create button toolbar
    2) When user press button, then must shown window with empty content, and in window must be loaded my ASPX page with functionality
    3) On my ASPX page has button, when user press it, then I must show standart ImageGallery or InsertImage dialog, and after user select image then I must get selected image path in JavaScript variable.
     
    How can I do this (url, examples, etc ...)?
     
    Thanks.
  •  09-27-2009, 2:10 PM 55902 in reply to 55901

    Re: Help me create solution ???

    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?
    Filed under:
  •  09-28-2009, 1:52 AM 55905 in reply to 55902

    Re: Help me create solution ???

    Hi Virt,
     
    Try the demo below. If it is what you want, you can download the source code by this link
     
     

    How to use CuteEditor as an image selector?( Demo1 |  Demo2 )

    This example demonstrates how to use CuteEditor as an image selector.
     
    Regards,
     
    ken
  •  09-28-2009, 6:04 AM 55913 in reply to 55905

    Re: Help me create solution ???

    Kenneth:
    Hi Virt,
     
    Try the demo below. If it is what you want, you can download the source code by this link
     
     

    How to use CuteEditor as an image selector?( Demo1 |  Demo2 )

    This example demonstrates how to use CuteEditor as an image selector.
     
    Regards,
     
    ken
     
    ken, you suggest me FileProvider, but me need DotNetNuke.HtmlEditorProvider, and CuteEditor.NET must contain additional button in toolbar after InsertImage button ...
  •  09-29-2009, 3:03 AM 55926 in reply to 55913

    Re: Help me create solution ???

    up
View as RSS news feed in XML