Issue: Id attribute of Div tag is stripped in Rich text component. How do we handled this. Any help regarding this appreciated? Solution 1 (before CQ5.6): Setting property idAttribMode (on htmlRules -> serializer -> config) to "keep" should prevent removing the id attributes Make: 1) Under /apps/<yourApplication>/<yourComponent>/dialog/items create htmlRules/serializer/config nodes of type nt:unstructured. So, will end up with /apps/<yourApplication>/<yourComponent>/dialog/items/htmlRules/serializer/config. 2) Under "config" node create idAttribMode property and set it to "keep". It will be like: <htmlRules jcr:primaryType="nt:unstructured"> . . . <serializer jcr:primaryType="nt:unstructured"> <config jcr:primaryType="nt:unstructured" idAttribMode="keep"/> </serializer> . . . </htmlRules> Solution 2 (from