You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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 sanitizeHtml documentation, 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 07:51:33