editor.insertImage(src, width, height);
selection.extendBackward();
editor.insertBookmark(`in_doc_${data.id}`);
I'm still working on images insertion in the document editor,
my insertions trigger a bookmark's creation after auto selecting the inserted image, to easily retrieve images in document.
editor.insertImage(src, width, height);
selection.extendBackward();
editor.insertBookmark(`in_doc_${data.id}`);
So, after the insertion, I got 2 undoStacks with the following actions : "InsertInline", then "InsertBookmark", everything is ok.
The problem comes now, when I resize this image, the undoStack action is again "InsertBookmark", instead of "ImageResizing", if I resize the image a second time, I got the undoStack's action "ImageResizing".
I need to target the action, to get the new size of the image, if the user resizes only one time, my code will miss the resizing informations. |
Can you please share which version of document editor you are using?
We couldn’t reproduce the reported scenario in latest version.
Kindly check with below stack blitz sample.
|
it permits to the user to print or generate a pdf, is it possible to send this pdf to a server to save it?
|
Document editor doesn’t provide support to convert to PDF. Hence, we need to convert it as docx document and with the help of DocIO in server-side, we can convert that document to PDF.
You can refer the sample from below link, where the document editor content passed as sfdt string from client-side is saved as docx stream, which is then passed to DocIO for PDF conversion.
|