mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
php-laravel: wrap data-insert-image with images array
This commit is contained in:
@ -173,8 +173,12 @@ class EditorController extends Controller
|
|||||||
|
|
||||||
// an image for inserting
|
// an image for inserting
|
||||||
$dataInsertImage = [
|
$dataInsertImage = [
|
||||||
'fileType' => 'svg',
|
'images' => [
|
||||||
'url' => "$storagePrivateUrl/images/logo.svg",
|
[
|
||||||
|
'fileType' => 'svg',
|
||||||
|
'url' => "$storagePrivateUrl/images/logo.svg",
|
||||||
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
// a document for comparing
|
// a document for comparing
|
||||||
@ -190,7 +194,7 @@ class EditorController extends Controller
|
|||||||
];
|
];
|
||||||
|
|
||||||
if ($directUrlEnabled) {
|
if ($directUrlEnabled) {
|
||||||
$dataInsertImage['directUrl'] = URL::build($storagePrivateUrl, '/images/logo.svg');
|
$dataInsertImage['images'][0]['directUrl'] = URL::build($storagePrivateUrl, '/images/logo.svg');
|
||||||
$dataDocument['directUrl'] = URL::build($storagePrivateUrl, '/document-templates/sample/sample.docx');
|
$dataDocument['directUrl'] = URL::build($storagePrivateUrl, '/document-templates/sample/sample.docx');
|
||||||
$dataSpreadsheet['directUrl'] = URL::build($storagePrivateUrl, '/document-templates/sample/csv.csv');
|
$dataSpreadsheet['directUrl'] = URL::build($storagePrivateUrl, '/document-templates/sample/csv.csv');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user