From f432478fabe7f6763df7f982674b10535bfcf118 Mon Sep 17 00:00:00 2001 From: Jacopo Beschi Date: Thu, 19 Dec 2024 10:40:51 +0100 Subject: [PATCH] Switch from JS pattern to DOMPurity.isValidAttribute This should any cover edge case not covered by the Regexp. --- src/trix/config/toolbar.js | 2 +- src/trix/controllers/toolbar_controller.js | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/trix/config/toolbar.js b/src/trix/config/toolbar.js index 2d97de337..1eb44fd3f 100644 --- a/src/trix/config/toolbar.js +++ b/src/trix/config/toolbar.js @@ -35,7 +35,7 @@ export default {