إضافة عنصر HTML مخصص (مكون ويب) إلى القائمة البيضاء

Is it possible to whitelist a custom element?

I have a library of custom elements I have written, and I would like to make them available to my users. @pfaffman pointed out the bbcode wrapper theme component by @j.jaffeux, but that seems to be more about… well to be honest I’m not sure I understand the relationship of the input and the output in the example.

In plugin world, there do seem to be clear examples where particular HTML elements are “whitelisted” —there’s a fair amount of code but if it boils down to just following a template like this in order to get my closed set of custom elements working, I could probably figure it out:

It’s pretty easy to understand how that code is working.

Would it work as well if the tag in question were a custom element (which of course has a dash), like, say, <interlinear-text> (which I have already defined outside of Discourse)?

مرحبًا @amundo،

هل حققت أي نجاح في هذا؟ أنا أبحث في استخدام مكونات الويب (Webcomponents) على Discourse لإضافة عناصر متناسقة عبر ممتلكاتنا الرقمية.

أطيب التحيات،
ABK

إعجاب واحد (1)

لا، كما ترون، لم تكن هناك أي استجابة. :man_shrugging:t4: