silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
720 stars 823 forks source link

Use field editorconfig when sanitising content #10977

Closed blueo closed 10 months ago

blueo commented 10 months ago

see https://github.com/silverstripe/silverstripe-framework/issues/10975 for the original issue This changes to using the field configured HTMLEditorConfig instance when sanitising content for saving. It will fall back to the active config if none is defined on the field.

Issue

blueo commented 10 months ago

Wasn't exactly sure which branch to target - currently 5 but maybe should b 4?

GuySartorelli commented 10 months ago

If this is a bug that affects CMS 4, please target the 4.13 branch. For future reference: https://docs.silverstripe.org/en/contributing/code/#picking-the-right-version

blueo commented 10 months ago

thanks I'll keep that for reference as I often wonder which one :)