Merge remote-tracking branch 'origin/master'

This commit is contained in:
Julien Fastré 2022-04-26 11:57:37 +02:00
commit 3ceae0473d
2 changed files with 6 additions and 3 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();