by jfh on Thu Dec 28, 2006 9:06 pm
I suppose you paste from another app or another window, so paste cleanup is on.
If this is your case, you should see pasteData() in wym.js.
Actually this function takes the raw text, so removes all the markup.
This is the only 'easy' option, because it's extremely difficult to handle the ugly code coming from Word or other apps.
The line sTmp=sTmp.replace(/\r\n/g,"<br />"); replaces newlines by a br tag.
If your list elements begin with some special character, you can easily find them, take the line's text and put <li>text</li> in sTmp for each list element.
Another option is disabling the paste cleanup by simply removing onbeforepaste and onpaste in editor.htm.
HTH,