Positioning the cursor after inserting a list

  •  03-08-2006, 8:49 PM

    Positioning the cursor after inserting a list

    I'm writing a JavaScript application that prepares a CuteEditor instance for user input by using the SetHTML function to insert the following:

              <ol unselectable="on"><li></li></ol>

    I would like the user to be able to start adding items to the list and to NOT be able to navigate outside of the list. However, even though the cursor appears after '1.' in Normal view, typed characters are inserted before the <ol> tag. How can I position the cursor between the <li> and </li> tags?

    Thanks.

View Complete Thread