mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-02-10 18:05:42 +08:00
Fix bug #70332
Convert drawing to inline form when adding picture content control
This commit is contained in:
11
api.js
11
api.js
@ -189,6 +189,17 @@ window["AscOForm"] = window.AscOForm = AscOForm;
|
|||||||
let h = isSignature ? 32 / 72 * 25.4 : undefined;
|
let h = isSignature ? 32 / 72 * 25.4 : undefined;
|
||||||
|
|
||||||
var oCC = oLogicDocument.AddContentControlPicture(w, h);
|
var oCC = oLogicDocument.AddContentControlPicture(w, h);
|
||||||
|
|
||||||
|
// MSWord can't open files with anchored picture content controls (70332)
|
||||||
|
if (oCC && !oFormPr)
|
||||||
|
{
|
||||||
|
let allDrawings = oCC.GetAllDrawingObjects();
|
||||||
|
for (let i = 0; i < allDrawings.length; ++i)
|
||||||
|
{
|
||||||
|
allDrawings[i].MakeInline();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let oFormParaDrawing = null;
|
let oFormParaDrawing = null;
|
||||||
if (oCC && oFormPr)
|
if (oCC && oFormPr)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user