Undo system for text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • oeyvind toft

    #1

    Undo system for text

    I`m writing a javascript regex tester (IE 6 only) and would like to include
    an undo button for a text input field.

    I want it to handle individual keystrokes, pasting and drop, and also
    text added by clicking various buttons.

    I have tried a LOT of handler combinations and fancy conditionals to
    make it work perfectly, and I`m ALMOST there.

    If anyone of you guys have seen a working javacript undo system such
    as described I would be most grateful if you let me know.


    Oeyvind

    --





  • Thomas 'PointedEars' Lahn

    #2
    Re: Undo system for text

    oeyvind toft wrote:
    [color=blue]
    > I`m writing a javascript regex tester (IE 6 only) and would like to[/color]
    ^
    This (`) is an accent grave, not an apostroph ('). Use [Shift]+[#]
    or whatever key combination is required for your keyboard.
    [color=blue]
    > include an undo button for a text input field.[/color]

    That would require a kind of journal where to log user actions.
    [color=blue]
    > I want it to handle individual keystrokes, pasting and drop, and also
    > text added by clicking various buttons.[/color]

    Which ones, exactly?
    [color=blue]
    > I have tried a LOT of handler combinations and fancy conditionals to
    > make it work perfectly, and I`m ALMOST there.[/color]
    ^
    Which ones, exactly?

    Post your code; if too much, post the URL. There are
    (almost) no complete working solutions for free here.


    PointedEars
    --
    "Boys go to Jupiter to get more stupider,
    girls go to Mars, become rock stars!"
    -- Kim Gordon

    Comment

    • Randy Webb

      #3
      Re: Undo system for text

      Thomas 'PointedEars' Lahn wrote:[color=blue]
      > oeyvind toft wrote:
      >
      >[color=green]
      >>I`m writing a javascript regex tester (IE 6 only) and would like to[/color]
      >
      > ^
      > This (`) is an accent grave, not an apostroph ('). Use [Shift]+[#]
      > or whatever key combination is required for your keyboard.[/color]

      You really *are* as anally retentive as you act.

      OP: Ignore his babbling.


      --
      Randy
      comp.lang.javas cript FAQ - http://jibbering.com/faq

      Comment

      • oeyvind toft

        #4
        Re: Undo system for text

        Randy Webb wrote:[color=blue]
        > OP: Ignore his babbling.[/color]

        Consider it done =O)

        Oeyvind


        --




        "Randy Webb" <HikksNotAtHome @aol.com> skrev i melding
        news:e-mdnSlva6ki3afcR Vn-rg@comcast.com. ..[color=blue]
        > Thomas 'PointedEars' Lahn wrote:[color=green]
        > > oeyvind toft wrote:
        > >
        > >[color=darkred]
        > >>I`m writing a javascript regex tester (IE 6 only) and would like to[/color]
        > >
        > > ^
        > > This (`) is an accent grave, not an apostroph ('). Use [Shift]+[#]
        > > or whatever key combination is required for your keyboard.[/color]
        >
        > You really *are* as anally retentive as you act.
        >
        > OP: Ignore his babbling.
        >
        >
        > --
        > Randy
        > comp.lang.javas cript FAQ - http://jibbering.com/faq[/color]


        Comment

        Working...