import { html, css } from '@design.estate/dees-element'; import '@design.estate/dees-wcctools/demotools'; export const demoFunc = () => html`

Basic Rich Text Editor

A full-featured rich text editor with formatting toolbar

Welcome to the Rich Text Editor!

This is a feature-rich editor built with TipTap. You can:

  • Format text with various styles
  • Create different heading levels
  • Add links to external resources
  • Write inline code or code blocks

Use the toolbar above to explore all the formatting options available!

Start typing to see the magic happen...

'} .description=${'Use the toolbar to format your content with headings, lists, links, and more'} .showWordCount=${true} >

With Placeholder

Empty editor with placeholder text

Different Heights

Editors with different minimum heights for various use cases

Code Examples

Editor pre-filled with code examples

Installation Guide

To install the package, run the following command:

npm install @design.estate/dees-catalog

Then import the component in your TypeScript file:

import { DeesInputRichtext } from "@design.estate/dees-catalog";

You can now use the <dees-input-richtext> element in your templates.

'} .minHeight=${250} .showWordCount=${true} >

Disabled State

Read-only rich text content

The Future of Web Components

Web Components have revolutionized how we build modern web applications...

"The future of web development lies in reusable, encapsulated components."

'} .disabled=${true} .showWordCount=${true} >

Interactive Demo

Type in the editor below and see the HTML output

{ const output = document.querySelector('#output-preview'); if (output) { output.textContent = e.detail.value; } }} >
HTML output will appear here...
`;