How to convert the content edited by ckeditor into word

now there is a requirement that is similar to online editing word

there is such a product list that the word file has been generated by the algorithm in the background, and users can directly click to download and download word to the local.
now the word generated by the algorithm is not in good format or the user wants to readjust the style, so add an edit button next to the download. Click the edit button to jump to the edit details page (that is, a ckeditor rich text editor), edit and save, go back to the product list page, and then click download to download the word you just edited.

currently, the editor can only receive and export strings in html format and markdown syntax. Before, imagine and try to use pandoc to convert word to html, using the interface to the front end to load into the editor, edit and then pass the html string to the background to generate html, using pandoc to convert into word. But the pandoc conversion does not retain the css inline style, just the conversion between plain text. Still my usage is not quite right.

I read some html to word, on the Internet, but I don"t quite understand the java code, and the permissions of the front-end js are very low, so it is really difficult for me to study this at the front-end, and there is no back-end support yet. The basic ckeditor plugin and image upload have been completed.

I would like to ask if there is any other solution if you want to edit word on the server online.

Aug.11,2021

what you want is to convert html (markdown (which is also html) into word and download it again. The front end is not good. If you want to do it in the back end, you can use open source pandoc,docjx4j,Apache POI,JODConverter, etc., but the effect is limited to some simple html, complex html may have some problems, some commercial software can also, the effect is better than open source software.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36d70-e596.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36d70-e596.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?