How to register

Last post 08-14-2015, 9:49 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  08-12-2015, 6:11 PM 80608

    How to register

    I'm new to MVC and trying to use Rich Text Editor.

    I'm lost  with third step.

     

    3. Using the Editor in a MVC page

    a. Register RichTextEditor control in MVC page and use Editor.LoadFormData method to load content into the RTE

    Private Editor1 As New Editor(HttpContext.Current, "Editor1")
    Protected Overloads Overrides Sub OnInit(e As EventArgs)
      MyBase.OnInit(e)
      Editor1.LoadFormData("Type Here...")
      Editor1.MvcInit()
    End Sub

    b. Insert a RTE instance into the page

    <%= Editor1.MvcGetString() %>

     

     

    How do you  register a control in a MVC page? 

     

  •  08-14-2015, 9:49 AM 80613 in reply to 80608

    Re: How to register

    Hi,

     

    I suggest you download the demo at http://richtexteditor.com/download/richtexteditor.rar and test it directly. we have mvc2/3/4 demo in it, so you can check the source code and use the same way in your own page.

     

    Regards,

     

    Ken 

     


        

View as RSS news feed in XML