I was able to get rid of the htmltext by adjusting the isHTML() function with a blunt-edged hack. The real fix would be to change the paragraphTagRegex() function to return "true" for list fields but my regex isn't good enough to figure that out. At any rate, if you can get isHTML() to return true for list fields, the display is fixed.
But it goes much deeper than that. When you click a line in the (now fixed) text the temp field that is created always has a line number of 1. That's because there are no fixed line numbers and the <ol> tag will use 1 as the first list item. The table field scripts are more complex than I have time to track and fix.
However, if someone can provide regex to allow for lists, and you change your script to use specific numbers instead of auto-generated ones, then I think it will work. Here is the regex that needs to be updated to include list tags:
Code: Select all
private function paragraphTagRegex
return "<p( [a-zA-Z0-9]+=" & quote & "[a-zA-Z0-9]+" & quote & ")*>"
end paragraphTagRegex