Skip to content

Commit

Permalink
feat: added info message if Markdown editor is enabled, closes #2964
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed May 30, 2024
1 parent 0426d59 commit 0b903fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions phpmyfaq/admin/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@
'main.metaKeywords'
];

$message = '';

// Special checks
if (isset($editData['edit']['main.enableMarkdownEditor'])) {
$message = 'Markdown editor enabled, WYSIWYG editor disabled.';
$editData['edit']['main.enableWysiwygEditor'] = false; // Disable WYSIWYG editor if Markdown is enabled
}
if (isset($editData['edit']['main.currentVersion'])) {
Expand Down Expand Up @@ -133,6 +136,12 @@ class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-cente
<div class="row">
<div class="col-lg-12">

<?php if (!empty($message)) { ?>
<div class="alert alert-info" role="alert">
<?= $message ?>
</div>
<?php } ?>

<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="nav-item">
<a href="#main" aria-controls="main" role="tab" data-bs-toggle="tab" class="nav-link active">
Expand Down

0 comments on commit 0b903fb

Please sign in to comment.