1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added editor type change button

This commit is contained in:
Dan Brown
2022-04-17 15:01:29 +01:00
parent e8e38f1f7b
commit 0cc215f8c3
4 changed files with 15 additions and 2 deletions

View File

@ -97,6 +97,7 @@ class PageController extends Controller
'isDraft' => true,
'draftsEnabled' => $draftsEnabled,
'templates' => $templates,
'editor' => setting('app-editor') === 'wysiwyg' ? 'wysiwyg' : 'markdown',
]);
}
@ -224,6 +225,7 @@ class PageController extends Controller
'current' => $page,
'draftsEnabled' => $draftsEnabled,
'templates' => $templates,
'editor' => setting('app-editor') === 'wysiwyg' ? 'wysiwyg' : 'markdown',
]);
}