Replies: 1   Views: 1018
Problem html ckeditor to docx
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by dev-info  · 19-07-2021 - 07:02

I have a problem to retrieve the content of CKEditor (html content and save this data in a docx)

I do first in js: CKEDITOR.instances.editor1.getData () in order to retrieve the html data from CKEditor.
Then, in php, I do:
$docx = new Phpdocx \ Create \ CreateDocx ();

$docx-> embedHTML ($ html);

docx-> createDocx ($ root.'array _ '. $ country_code);

BUT the output is written literally in html, and therefore in the docx is written in html code, without having been interpreted.

How do I save CKEditor data correctly?

Thanks for your help