Skip to content

Apply regular expression on richeditor to cleanup content #1271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

didoda
Copy link
Member

@didoda didoda commented Apr 23, 2025

This provides a way to apply a regular expression on richeditor change, if set in configuration.
Example:

'Richeditor' => [
    'cleanup_regex' => '\s\w+="[^"]*"', // remove all attributes from tags
],

To investigate: should a "default regex" be used always, if no configuration set?

@didoda didoda added feature New feature or request release:patch labels Apr 23, 2025
@didoda didoda added this to the 5.x milestone Apr 23, 2025
Copy link

codecov bot commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (3708ec2) to head (5345ce1).
Report is 20 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master     #1271   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity      1384      1391    +7     
===========================================
  Files             98        98           
  Lines           5493      5543   +50     
===========================================
+ Hits            5493      5543   +50     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request release:patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant