Apostrophe富文本Widget类传递问题:多类添加后样式选择器失效
Issue with Multiple Custom Classes in Apostrophe Rich Text Widget
I ran into an odd issue when passing custom classes to the Apostrophe Rich Text Widget. Here's a breakdown of the problem and where I stand with it:
- Single class works fine: After updating the
sanitizeHtmldocumentation, I can successfully pass a single custom class to the widget. The associated style selectors work as expected, no problems there. - Multiple classes break styling: As soon as I try adding multiple classes (separated by spaces, like you'd normally do), the component's style selectors completely stop working. None of the classes I passed are being applied correctly.
- Unconfirmed hypothesis: My current guess is that when passing a parameter with spaces, the widget is only capturing the first segment of the class string. That would explain why multiple classes don't work, but I haven't verified this by checking the underlying code yet.
内容的提问来源于stack exchange,提问作者Connor Whitman
相关产品推荐
相关产品推荐

