comments - How to structure collaborative notes in HTML -


in our cms system add feature users can add notes existing content. annotation-like system users each other writing texts. system inspired way medium , substance work, microsoft office, libre office , google drive have same feature.

the notes stored in database, notes have author , can contain meta-data. however, notes must attached (a selection of) words. in our case have simple html wysiwyg editor, thinking add "special" markup contents:

<p>lorem ipsum dolor sit amet, <note ref="4">consectetur</note> adipiscing</p> 

and in our database there note stored identifier 4.

i came method because can't attach string position or something. wondering, in general good/best method? common do?

the wysiwyg editor should not filter out <note> tag, in rendering @ frontend tag must removed. there options smarter this?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -