mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +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
|
||||
$dataInsertImage = [
|
||||
'fileType' => 'svg',
|
||||
'url' => "$storagePrivateUrl/images/logo.svg",
|
||||
'images' => [
|
||||
[
|
||||
'fileType' => 'svg',
|
||||
'url' => "$storagePrivateUrl/images/logo.svg",
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
// a document for comparing
|
||||
@ -190,7 +194,7 @@ class EditorController extends Controller
|
||||
];
|
||||
|
||||
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');
|
||||
$dataSpreadsheet['directUrl'] = URL::build($storagePrivateUrl, '/document-templates/sample/csv.csv');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user