Creating mini-html editor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terry Murray

    Creating mini-html editor

    I have been given the task of adding a component to a control panel that
    will act as a miniature html editor.
    I would like to know how to determine the position of the cursor at any
    point within a textarea that I will be using to capture the users html data.
    The other thing I would like to do is insert text to that determined cursor
    position.

    Any suggestions

    Thanks in advance


  • Jeff Cochran

    #2
    Re: Creating mini-html editor

    On Mon, 13 Oct 2003 21:04:22 GMT, "Terry Murray" <tgmurray@roger s.com>
    wrote:
    [color=blue]
    >I have been given the task of adding a component to a control panel that
    >will act as a miniature html editor.
    >I would like to know how to determine the position of the cursor at any
    >point within a textarea that I will be using to capture the users html data.
    >The other thing I would like to do is insert text to that determined cursor
    >position.[/color]

    I reduced the newsgroup list you posted to to just the relevant ones (
    this isn't an IIS issue, and it's not a database issue, and you missed
    the components group anyway...).

    First, I'd think you'd use one of the existing components for HTML
    editing instead of reinventing the wheel. Second, if ASP.NET is a
    possibility, you'd likely be better off working in that direction.
    What you seem to want is a WYSIWYG editor, which is not an easy task
    as a stand alone, let alone a component. You may be looking at some
    kind of applet instead.

    Jeff

    Comment

    • grw

      #3
      Re: Creating mini-html editor

      Why reinvent the wheel?


      "Jeff Cochran" <jcochran.nospa m@naplesgov.com > wrote in message
      news:3f8be35a.6 84787582@msnews .microsoft.com. ..[color=blue]
      > On Mon, 13 Oct 2003 21:04:22 GMT, "Terry Murray" <tgmurray@roger s.com>
      > wrote:
      >[color=green]
      > >I have been given the task of adding a component to a control panel that
      > >will act as a miniature html editor.
      > >I would like to know how to determine the position of the cursor at any
      > >point within a textarea that I will be using to capture the users html[/color][/color]
      data.[color=blue][color=green]
      > >The other thing I would like to do is insert text to that determined[/color][/color]
      cursor[color=blue][color=green]
      > >position.[/color]
      >
      > I reduced the newsgroup list you posted to to just the relevant ones (
      > this isn't an IIS issue, and it's not a database issue, and you missed
      > the components group anyway...).
      >
      > First, I'd think you'd use one of the existing components for HTML
      > editing instead of reinventing the wheel. Second, if ASP.NET is a
      > possibility, you'd likely be better off working in that direction.
      > What you seem to want is a WYSIWYG editor, which is not an easy task
      > as a stand alone, let alone a component. You may be looking at some
      > kind of applet instead.
      >
      > Jeff[/color]


      Comment

      Working...