Hi Lý Quang Tùng,
Thank you for your patience.
We discussed your requirement with our Document Editor team regarding converting Rich Text Editor content to SFDT for Word template integration.
Currently, converting HTML/Rich Text Editor content to SFDT requires server-side processing. The Document Editor does not provide a client-side mechanism to directly convert HTML content into SFDT.
To achieve this, we recommend using the Document Editor Web Service and its server-side load functionality. The service can load HTML content and convert it into SFDT format, which can then be used for further Word document processing.
Once the web service is configured, you can pass the HTML content from your Rich Text Editor to the service and obtain the corresponding SFDT output.
Relevant resources:
Therefore, a purely client-side HTML-to-SFDT conversion approach is not supported at this time, and a server-side Document Editor service is required for this workflow.
Please let us know if you need any assistance in setting up the web service or implementing the conversion workflow.
Regards,
Kirupa.