feat(17-01): richeditor field type on the seaglass sanitizer

- seaglass (new module): bluemonday v1.0.27 policy ported from Journal
  without the Blog Editor rules, byte-stable token comparison,
  SanitizeReport, Sanitize, Check, Removals
- cabana: type richeditor (common keys plus size); every create and update
  value sanitized before Fill, non-string values are a 422, removals become
  meta.notices; settings and relation forms refuse the type
- backend lang richeditor.removed_* and markup_changed (en, pl plurals)
- TestSeaglassSmoke, TestCompanionsRichEditorSmoke, README and docs
This commit is contained in:
2026-10-12 15:15:38 +02:00
parent 69bb1cc95d
commit 71fa597830
16 changed files with 811 additions and 8 deletions

View File

@@ -106,6 +106,9 @@ func requireDependentProvider(ctl pact.AdminController, fields []FormField) erro
// that only an admin controller's save path supports: its checks run in the
// controller save and nowhere else.
func controllerFormOnly(field FormField) error {
if field.Type == richEditorType {
return fmt.Errorf("richeditor is supported in controller forms only")
}
if field.DependsOn != "" {
return fmt.Errorf("dependsOn is supported in controller forms only")
}