Dialog modal HTML support

Hi Dan,

The banner is support HTML. This topic is about the dialog which show up when you click the Create topic button.

Nope, it support HTML. Your example would be something like this :arrow_down_small:

To participate in category you need to <a href="/g/groupname/members">Apply</a>.

This should work in Header to support HTML in dialog. :slightly_smiling_face:

<script type="text/discourse-plugin" version="0.8">
  const { htmlSafe } = require("@ember/template");

  api.modifyClass("component:d-navigation", {
    pluginId: "dialog-html-support",
        
    actions: {
      clickCreateTopicButton() {
        if (this.categoryReadOnlyBanner && !this.hasDraft) {
          this.dialog.alert({
            message: htmlSafe(this.categoryReadOnlyBanner),
          });
        } else {
          this.createTopic();
        }
      },
    },
  });
</script>
3 Likes