co-rich-text-viewer
This content is not available in your language yet.
Ver código
<co-rich-text-viewer format="html" value="<p>Texto <strong>enriquecido</strong> de ejemplo con <em>cursiva</em> y <a href='#'>un enlace</a>.</p>"></co-rich-text-viewer> Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|---|---|---|---|
compact | compact | boolean | false | Reduced padding. |
emptyText | empty-text | string | undefined | — | Text shown when there is no content. |
format | format | "html" | "json" | 'html' | Input format. `html` is the lightweight path. |
preset | preset | "comment" | "document" | "email" | "task" | 'document' | Sanitization profile to apply. |
value | value | null | string | null | HTML string (default) or ProseMirror JSON string. |
Eventos
Este componente no emite eventos personalizados.
Slots
Este componente no expone slots.
CSS Parts
| Part | Descripción |
|---|---|
::part(content) | |
::part(empty) |
CSS Custom Properties
Este componente no expone CSS custom properties.