Positioning the cursor after inserting a list

Last post 03-08-2006, 8:49 PM by bpesner. 0 replies.
Sort Posts: Previous Next
  •  03-08-2006, 8:49 PM 16870

    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 as RSS news feed in XML