Editor
CSS tools such as
tailwindcssandunocssare recommended. They make UI customization easier and help build smaller CSS files on demand.
CSS editor preview classes in the default stylesheet.
CSSBasic DOM
HTML<div class="j-editor is-{size}">...</div>
Sizes
is-smsmall, defaultis-mdmediumis-lglargeis-xlextra large
Example
This paragraph carries the main content. It supports many inline semantic tags, such as strong text (strong), bold text (b), emphasis (em), italic (i), underline (u), strikethrough (s), deleted text (del), and inserted text (ins).
Heading Level 3
Examples of special text types:
- Highlighted text (mark): used for emphasis
- Secondary note text (small): such as copyright notes
- Superscript: E = mc2; subscript: H2O
- Abbreviation: CSS is a styling language for the Web
- Definition term: Artificial intelligence (AI) means technology that lets machines simulate human intelligent behavior
- Variable: x = 10
- Program output: File not found.
- Keyboard input: Ctrl + Shift + R
- Time mark:
Heading Level 4: Lists and Definitions
- HTML
- HyperText Markup Language, used to build web page structure.
- CSS
- Cascading Style Sheets, used to control web page presentation.
- JavaScript
- A scripting language used to build web page interactions.
Heading Level 5: Quote and Code
"Code is read far more often than it is written."
Code Complete
Inline quote: what you see is what you get is a core idea in rich text editing.
<!-- Regular pre code -->
<div class="j-content">
<h1>Title</h1>
<p>Paragraph content...</p>
</div>
HTML<!-- highlight pre code --><div class="j-content"> <h1>Title</h1> <p>Paragraph content...</p></div>
Heading Level 6: Media and Embedded Content
Tables and Data Display
| ID | Name | Status | |
|---|---|---|---|
| 001 | Alex Zhang | alex@example.com | Active |
| 002 | Nina Lee | nina@example.com | Idle |
Interaction and Metadata
Click to expand technical stack details
This project uses the following technologies:
- Frontend: React + TypeScript
- Styles: CSS Modules + PostCSS
- Build: Vite
Database: MongoDB
Email: contact@example.com
Address: 100 Century Avenue, Pudong New Area, Shanghai, China
Less Common Semantic Elements
Ruby annotation example, useful for teaching uncommon words:
kan ji
Bidirectional isolation text, useful for mixed languages: Username: Zhang San
Right-to-left text, such as Arabic: مرحبا بالعالم
Progress indicator, display only:
Meter value:
Separators and Line Breaks
This is a normal paragraph. >> Before anything took shape, all was vast and undefined. From emptiness came space, from space came the world, and from the world came breath. Light breath rose and became the sky; heavy breath settled and became the earth. The sky formed first, then the earth found its place. From their joined essence came yin and yang, from yin and yang came the four seasons, and from the four seasons came all things.
New content below the horizontal rule (hr).
Forced
line break example.
Readonly Form Controls, for Display
Input (readonly):
Select:
Textarea (readonly):
Other
Empty element example:
Data attribute display, visually hidden but structurally present: China