Installation
Export Methods
All export methods are available directly on the editor instance:HTML Export
Export content as HTML with semantic markup:HTML with Metadata
HTML export includes block metadata like alignment and depth:Markdown Export
Export to GitHub Flavored Markdown:Markdown Features
- Headings (
#,##,###) - Bold and italic formatting
- Lists (bulleted and numbered)
- Code blocks with language syntax
- Blockquotes
- Links and images
- Tables
- Horizontal rules
Plain Text Export
Export content as plain text (no formatting):- Search indexing
- Character/word count
- Preview text
- Clipboard copy
Email Export
Export HTML optimized for email clients:Email Template Options
JSON Export
Export the native Yoopta content structure:Import Methods
The exports package provides deserializers for importing content:HTML Import
- Headings:
<h1>-<h6> - Paragraphs:
<p> - Lists:
<ul>,<ol>,<li> - Formatting:
<strong>,<em>,<u>,<s>,<code> - Quotes:
<blockquote> - Code:
<pre>,<code> - Images:
<img> - Links:
<a> - Tables:
<table>,<tr>,<td>,<th>
Markdown Import
Plain Text Import
Practical Examples
Export Button with Menu
Download as File
Import from File Upload
Live Markdown Preview
Custom Serializers
Plugins can define custom serialization logic:Best Practices
Validate imported content
Validate imported content
Always validate content structure when importing:
Handle large exports efficiently
Handle large exports efficiently
For large documents, consider chunking or streaming:
Preserve formatting on import
Preserve formatting on import
Use HTML import for rich formatting, Markdown for simple content: