HTML processing

Checking text with some html formatting is an important use case for me. I am thinking of a pre/post processor:

the original text

\p>or use this text too see an few of of the problems that LanguageTool can detecd./p>\p>What do you thinks of grammar checkers? Please not that they are not perfect./p>

(I changed the html to get it to show up)

transform to:

or use this text too see an few of of the problems that LanguageTool can detecd. What do you thinks of grammar checkers? Please not that they are not perfect.

with the map
0,3 81,6 159,3

then transform the offsets i.e. 93 (thinks) maps to 102 in the original

Anyone have a better idea?

This strategy is working well and allows me to add my own markup for my students.

I have a problem with ckeditor. When I use setData() to update the contents the css is not applied. I must toggle ckeditor itself.