I built an that app loads dynamic content and renders it through Scully. The content has web components like this in it:
Content selection dialog that looks like this:
<fs-image url='https://fireflysemantics.github.io/i/developer/instant-html-vscode.png'></fs-image></p>
<p>Sample topic examples</p>",
I'm guessing that Scully tried to look for an Angular component that matches the the tag fs-image
and since it does not find one, it just removes the fs-image
element from the generated content.
How do we tell Scully that fs-image
is a web component?
To use Custom Element with Angular we need to add a custom schema:
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
...
schemas: [CUSTOM_ELEMENTS_SCHEMA],
So I added that but the content fs-image
web component is still stripped from the content Scully generates.