In general, I am slightly confused, maybe someone will tell you how to properly organize such functionality.
The essence is as follows. On my site, people can post their articles. They add them through ckeditor, which generates text with bb-codes. Other people read these very articles and, if they see spelling errors, select them and send a message about it to the author. At the same time, as practice shows, in each article there can be about a dozen such messages, incl. and from different readers.
In order to implement such a function, I retain the paragraph number and the word number in a sentence that contains an error (it is highlighted by “words”, not by a line). Maybe this is wrong, but at some point it seemed to me the best solution, because bb-codes are not taken into account (which would have happened if the number of the symbol had been recorded) and word repetitions did not interfere (which would have happened if I had memorized a specific phrase), and it also allows me to select several words in different parts of the text (for example, if one piece of the article contradicts the other).
And when the author of the article follows a certain link, I give him the same text of his article with notes that the error is here and here (in such and such words) and the comments of users who indicated this error (what is the error and how fix it). BUT. At the moment, a person, after looking at this page with a list of these errors, should go to editing and there, referring again to the list, should correct these errors. This is obviously not gud. I would need to somehow combine the editor and the text with the output of errors on one page.
Of course, the first thought was to allocate what was needed in the ckeditor itself, but this is 1) difficult, you need to thoroughly understand and write modules in it 2) the result is not bb-code, but some nonsense with the text of these errors inside, again 3) if you link a mistake to a word, then when a person deletes this word in order to correct the mistake, the error will not be visible. In general, it somehow seemed to me too abstruse, and with a lot of pitfalls.
The second option - since I have a linkage by paragraph number, it would be logical to make a "edit paragraph" button through which a specific paragraph would be edited, at the same time a person would see the source text with errors and everything would be corrected in the paragraph. But since the entire text is saved as a single text block, rather than individual paragraphs, I am also afraid that various errors will occur. In addition, the authors are very fond of arranging empty paragraphs, and I am afraid that they may also become a source of errors. But this is still an option.
The third option: similar to the second, with the difference that you can use the built-in editing mechanism in ckeditor on the spot (double click - and instead of the ckeditor paragraph). He has the same pitfalls as the second, and the text is replaced by the editor, and a person can forget where he wanted to correct what.
And the last option is to somehow combine the text and the editor on the page, so that each line coincides in one and in the other, in order to see what the commentators have written in plain text, and in the editor to fix everything in a mass.
In general, I am waiting for advice and general opinions on how to do it right, or how to do it simply, without being bothered.