Merge branch 'master' into feat/add-document-encrypter-service

This commit is contained in:
2022-04-26 14:52:13 +02:00
8 changed files with 36 additions and 10 deletions

View File

@@ -9,11 +9,11 @@
declare(strict_types=1);
use Chill\WopiBundle\Controller\Test;
use Chill\WopiBundle\Controller\Editor;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
return static function (RoutingConfigurator $routes) {
$routes
->add('chill_wopi_file_edit', '/edit/{fileId}')
->controller(Test::class);
->controller(Editor::class);
};

View File

@@ -14,7 +14,10 @@ window.addEventListener('DOMContentLoaded', function(e) {
office_frame.setAttribute('allowfullscreen', 'true');
// The sandbox attribute is needed to allow automatic redirection to the O365 sign-in page in the business user flow
office_frame.setAttribute('sandbox', 'allow-downloads allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation allow-popups-to-escape-sandbox');
office_frame.setAttribute(
'sandbox',
'allow-downloads allow-scripts allow-same-origin allow-forms allow-modals allow-popups allow-top-navigation allow-popups-to-escape-sandbox'
);
frameholder.appendChild(office_frame);
document.getElementById('office_form').submit();