Add the editor: toolbar, photos in the text, a server preview and a focus point
This commit is contained in:
1 parent
6b41bfddd3
commit
6a51b0e649
18 files changed
+224
-17
No files matched your search
@@ -30,6 +30,9 @@ class RecordActions
|
||||
/** Opening the same page again within this time is not a new line. */
|
||||
private const SAME_LOOK_MINUTES = 5;
|
||||
|
||||
/** Requests that only look at something while it is written: not an action, not worth a line. */
|
||||
private const SILENT = ['markdown.preview'];
|
||||
|
||||
public function __construct(private readonly AuditTrail $trail, private readonly ModuleRegistry $modules) {}
|
||||
|
||||
/**
|
||||
@@ -59,6 +62,10 @@ class RecordActions
|
||||
$name = $actions[$route][0] ?? ($views[$route] ?? '');
|
||||
$name = $name !== '' ? __($name) : __('Asked for :request', ['request' => $request->method().' /'.ltrim($request->path(), '/')]);
|
||||
|
||||
if (in_array($route, self::SILENT, true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($thrown !== null) {
|
||||
// Only a refusal is worth a line; a form with a mistake or a page that is not there is not.
|
||||
if ($thrown instanceof AuthorizationException || ($thrown instanceof HttpExceptionInterface && $thrown->getStatusCode() === 403)) {
|
||||
|
||||
Reference in new issue
Block a user