I'm attempting to export some CKEditor created fields from a database, convert them to a docx using Xhtml Import, edit the text content, then convert it back to xhtml and insert those fields back into the database.
The xhtml structure is like
- Code: Select all
<html><body>
<div id="database-field-1" class="field-section">
<label>database-field-1</label>
<div class="field-content">xyz</div>
</div>
<div id="database-field-2" class="field-section">
<label>database-field-2</label>
<div class="field-content">xyz</div>
</div>
etc...
So when I do the conversions, I would like to retain the id's so when I try am ready to import again I can update the database based on them... Do you have an example or suggestion?
Thanks!