Setze Symbole vor Absätze, Nummern in Kreise und Symbole statt Aufzählungspunkte im Text (ADR-69)
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:
1 parent
67764c3e4f
commit
e904b500fb
24 files changed
+814
-14
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user