Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
How are your paragraphs presented?
I would do this on the basis of the usual components of comments based on the forum, but for this the paragraph needs to be somehow represented as a data object so that it has some id by which it would be possible to associate its comment thread with it. The simplest method "on the forehead" is to store each paragraph separately as an IB element, but this is terribly inconvenient. I would do this - let the paragraphs be just paragraphs (tag p) in the html field DETAIL_TEXT element IB, then, already on the client, they can be assigned using js id based on the id element IB and the number of the paragraph in the text.
I would write this id to some data-paraid attribute and, again, js would add to all elements with the data-paraid attribute the ability to open a popup with an iframe, in which there would be a normal comment component.
Sort of like that, in a nutshell.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question