Skip to content

Commit e8eeea1

Browse files
committed
enh: set ooxml as default doc_format
Signed-off-by: grnd-alt <github@belakkaf.net>
1 parent 6502c46 commit e8eeea1

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/AppConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class AppConfig {
3939
'watermark_allTagsList' => [],
4040
'watermark_linkTagsList' => [],
4141
'token_ttl' => 36000, // 10 hours
42+
'doc_format' => 'ooxml',
4243
];
4344

4445
public const WATERMARK_APP_NAMESPACE = 'files';

lib/Listener/RegisterTemplateFileCreatorListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function handle(Event $event): void {
3939
}
4040

4141
$templateManager = $event->getTemplateManager();
42-
$ooxml = $this->config->getAppValue(Application::APPNAME, 'doc_format', '') === 'ooxml';
42+
$ooxml = $this->config->getAppValue(Application::APPNAME, 'doc_format', 'ooxml') === 'ooxml';
4343
$appPath = $this->appManager->getAppPath('richdocuments');
4444

4545
$templateManager->registerTemplateFileCreator(function () use ($ooxml, $appPath) {

src/components/AdminSettings.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ export default {
532532
fonts: [],
533533
hasSettingIframeSupport: false,
534534
setting_iframe_url: '',
535+
doc_format: null,
535536
},
536537
accessToken: '',
537538
accessTokenTTL: '',

0 commit comments

Comments
 (0)