Gib dem Fließtext den Editor der Dokumente und lass Überschrift und Fließtext die volle Breite nutzen
Fließtext Version 2: formatierter Text (bereinigtes HTML) im gemeinsamen Editor mit Zwischenüberschriften, fett, kursiv, Links, Listen, Zitat und Tabellen. Links auf eigene Seiten (/seite, #anker) bleiben im CMS erhalten (FormattedText mit internalLinks), in Verwaltung und PDF weiterhin nicht. Version 1 (Klartext) wird beim Lesen zu Absätzen. Tabellen stehen in einem scrollbaren, tastaturerreichbaren Rahmen. Das Maß für gespeichertes HTML steigt von 20000 auf 100000 Zeichen. Neue Einstellung "Breite des Texts" für Überschrift und Fließtext: Vorgabe volle Breite des Platzes, wahlweise Lesebreite wie bisher (Überschrift 22 Zeichen, Text 70 Zeichen). Bestehende Seiten nutzen dadurch ohne Eingriff die ganze Breite. Der Test zu "Altes Eingabeformat" erwartet bewusst das gespeicherte HTML der Version 2. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5233b96c42
commit
79b58903ac
17 files changed
+424
-37
No files matched your search
@@ -3,15 +3,16 @@
|
||||
$side = \App\Domain\Cms\Widgets\Support\HeadingAccent::sideSize($settings);
|
||||
$align = \App\Domain\Cms\Widgets\Support\HeadingAccent::align($settings);
|
||||
$inline = $side !== null ? [] : $settings;
|
||||
$reading = \App\Domain\Cms\Widgets\Support\HeadingAccent::textWidth($settings) === 'reading' ? ' class="lf-reading"' : '';
|
||||
@endphp
|
||||
@if ($side !== null)<div class="lf-lead lf-lead--{{ $side }} lf-lead--{{ $align }}"><x-brand.symbol :name="$symbol" class="lf-lead__symbol" /><div class="lf-lead__body">@endif
|
||||
@if (! empty($first))
|
||||
<h1><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h1>
|
||||
<h1{!! $reading !!}><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h1>
|
||||
@else
|
||||
<h2><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h2>
|
||||
<h2{!! $reading !!}><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h2>
|
||||
@endif
|
||||
<x-brand.heading-brush :settings="$settings" />
|
||||
@if (filled($data['intro'] ?? null))
|
||||
<p class="lede">{{ $data['intro'] }}</p>
|
||||
<p class="lede{{ $reading !== '' ? ' lf-reading' : '' }}">{{ $data['intro'] }}</p>
|
||||
@endif
|
||||
@if ($side !== null)</div></div>@endif
|
||||
@@ -1,10 +1,6 @@
|
||||
@if (filled($data['body'] ?? null))
|
||||
@php($lead = \App\Domain\Cms\Widgets\Support\HeadingAccent::lead($settings, 'medium'))
|
||||
@if ($lead['side'] !== null)<div class="lf-lead lf-lead--{{ $lead['side'] }} lf-lead--{{ $lead['align'] }}"><x-brand.symbol :name="$lead['symbol']" class="lf-lead__symbol" /><div class="lf-lead__body">@endif
|
||||
<div class="prose">
|
||||
@foreach (preg_split("/\n\s*\n/", trim($data['body'])) as $paragraph)
|
||||
<p>{{ $paragraph }}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
<div @class(['prose', 'prose--reading' => \App\Domain\Cms\Widgets\Support\HeadingAccent::textWidth($settings) === 'reading'])>{!! $html !!}</div>
|
||||
@if ($lead['side'] !== null)</div></div>@endif
|
||||
@endif
|
||||
Reference in new issue
Block a user