Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Extending (improving) microsoft's HTML editor control? Discuss!

Extending (improving) microsoft's HTML editor control? Discuss!

Scheduled Pinned Locked Moved C#
csharphtmlwinformscomhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nathan Ridley
    wrote on last edited by
    #1

    Have any of you created any custom additions to Microsoft's HTML editor control? I have a bunch of features I'd like to implement, including:

    • locking of certain portions of an html page so that only specified blocks can be edited. When the user tries to do anything, for example, selecting text, clicking a table, etc, they'd simply get a "not allowed" cursor icon and clicking a locked area would have no effect.
    • a vastly improved table editor! I'd like to implement a table editor similar that functions similarly to dreamweaver's table editor. Microsoft's table editor sucks. Various things would need to be overridden, i'd imagine, including how tables respond to various events (click, drag, drop, etc).

    Have you ever attempted anything like this? I'd really like to know what the limitations of the html editor control are before I start to invest a whole bunch of time trying to do these things only to come to brick wall halfway through development. Also, I'm open to making this free if anyone wants to help me. Naturally I'll be using C# and implementing it as a custom winforms control. NATHAN RIDLEY Web Application Developer email: nathan @ netlab.com.au [remove the spaces before and after the @ symbol]

    H 1 Reply Last reply
    0
    • N Nathan Ridley

      Have any of you created any custom additions to Microsoft's HTML editor control? I have a bunch of features I'd like to implement, including:

      • locking of certain portions of an html page so that only specified blocks can be edited. When the user tries to do anything, for example, selecting text, clicking a table, etc, they'd simply get a "not allowed" cursor icon and clicking a locked area would have no effect.
      • a vastly improved table editor! I'd like to implement a table editor similar that functions similarly to dreamweaver's table editor. Microsoft's table editor sucks. Various things would need to be overridden, i'd imagine, including how tables respond to various events (click, drag, drop, etc).

      Have you ever attempted anything like this? I'd really like to know what the limitations of the html editor control are before I start to invest a whole bunch of time trying to do these things only to come to brick wall halfway through development. Also, I'm open to making this free if anyone wants to help me. Naturally I'll be using C# and implementing it as a custom winforms control. NATHAN RIDLEY Web Application Developer email: nathan @ netlab.com.au [remove the spaces before and after the @ symbol]

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      What you want is possible, although not easy. You can host either the WebBrowser control or the MSHTML component through COM interop assemblies. The WebBrowser control hosts the MSHTML component and provides additional services you may want, like hyperlinking and additional communication with the host. In order to extend it, you must declare managed interfaces like IDocHostUIHandler. These advanced hosting interfaces are documented in MSDN in the Advanced Hosting Reference[^]. If you want to generate an interop assembly for these interfaces, read the article Using MSHTML Advanced Hosting Interfaces[^] here on CodeProject. If you don't want to go to all that work (because there's quite a bit involved), take a look at some of the third-party solutions out there. We just settled on the NET.RIX[^] component, which has both a full and lite version with what you want already. It's also affordably priced and royalty free.

      Microsoft MVP, Visual C# My Articles

      N 1 Reply Last reply
      0
      • H Heath Stewart

        What you want is possible, although not easy. You can host either the WebBrowser control or the MSHTML component through COM interop assemblies. The WebBrowser control hosts the MSHTML component and provides additional services you may want, like hyperlinking and additional communication with the host. In order to extend it, you must declare managed interfaces like IDocHostUIHandler. These advanced hosting interfaces are documented in MSDN in the Advanced Hosting Reference[^]. If you want to generate an interop assembly for these interfaces, read the article Using MSHTML Advanced Hosting Interfaces[^] here on CodeProject. If you don't want to go to all that work (because there's quite a bit involved), take a look at some of the third-party solutions out there. We just settled on the NET.RIX[^] component, which has both a full and lite version with what you want already. It's also affordably priced and royalty free.

        Microsoft MVP, Visual C# My Articles

        N Offline
        N Offline
        Nathan Ridley
        wrote on last edited by
        #3

        Wow that NET.RIX control looks great! I think I'll go that way and save time. thanks :) NATHAN RIDLEY Web Application Developer email: nathan @ netlab.com.au [remove the spaces before and after the @ symbol]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups