Use cases

    Rich Text Editor Use Cases

    Choose the scenario closest to yours for a focused walkthrough.

    What every use case has in common

    Whatever the surface, the integration follows the same three steps: initialize the editor on an element with Scribe.init(), read the content with getHTML() when the user saves or submits, and load existing content with setHTML(). Pasted content is sanitized automatically, so HTML from users is safe to store, and the toolbar can be floating (shown only on selection) or fixed above the text.

    The pages differ in what surrounds the editor: autosave and drafts for blogs, validation for forms, Enter-to-send for chat, long-form structure for documentation. For framework-specific setup see the React, Vue, Svelte and Next.js pages, and for common contenteditable problems the how-to guides.