Setze Symbole vor Absätze, Nummern in Kreise und Symbole statt Aufzählungspunkte im Text (ADR-69)
CI Feature / test (push) Successful in 7m17s
Deploy Test / test (push) Successful in 6m48s
Deploy Test / deploy (push) Successful in 41s

Zwei Werkzeuge im Texteditor (Symbol vor dem Absatz, Listenstil); gespeichert
werden nur Schlüssel, Bild und Farbe setzt die Ausgabe ein. Kreisfarben aus
der Palette, Verwendung wird mitgezählt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-30 18:58:10 +01:00
1 parent 67764c3e4f
commit e904b500fb
24 files changed
+814 -14

No files matched your search

+8
View File
@@ -4,6 +4,7 @@
use App\Domain\Cms\Page;
use App\Domain\Cms\Sections\SectionStyle;
use App\Domain\Cms\Widgets\Support\TextMarkers;
use App\Models\User;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Schema;
@@ -269,6 +270,13 @@ private static function countSections(?array $sections): array
$count[$slotId] = ($count[$slotId] ?? 0) + 1;
}
}
// Farbe der Zahlenkreise in Texten (ADR-69): data-tone im formatierten Text eines Widgets, je Widget einmal.
foreach (is_array($section) && is_array($section['slots'] ?? null) ? $section['slots'] : [] as $widget) {
foreach (is_array($widget) && is_array($widget['data'] ?? null) ? TextMarkers::tonesIn($widget['data']) : [] as $slotId) {
$count[$slotId] = ($count[$slotId] ?? 0) + 1;
}
}
}
return $count;