Redactor removing IDS
To prevent Rich Text fields from stripping your ID attributes, you'll need to disable the "Purify HTML?" setting for your field.

Note that disabling the HTML purifier does represent a potential security risk, but as long as you trust your content editor(s), you should be fine.