Skip to content

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_pattern' => '\\sstyle="[^"]*"', // remove style attributes from tags
    'cleanup_regex_argument' => 'gs', // global and match new lines
    'cleanup_regex_replace' => '', // replace with empty string
],

@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
@codecov
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 (bf67945).
Report is 21 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.

@didoda didoda marked this pull request as ready for review May 5, 2025 13:08
@didoda didoda merged commit f9af88d into bedita:master May 5, 2025
9 checks passed
@didoda didoda deleted the feat/cleanup-regex-for-richtext-editor branch May 5, 2025 13:13
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