Wordgard: The new in-browser rich-text editor from the creator of ProseMirror
Wordgard: A New Era of Rich-Text Editing
From the visionary creator of ProseMirror
Wordgard
[wɜrd-gɑrd]noun: A curated garden designed for the cultivation of words.
Wordgard is an open-source JavaScript library that empowers developers to implement sophisticated rich-text editors directly within the browser.
The Core Philosophy
Unlike traditional editors, Wordgard is a Semantic Rich Text Editor System. It is not a free-form HTML editor; instead, it provides a framework where the developer maintains absolute authority over the types of content permitted.
The library's primary strength lies in its robust programming interface, serving as an ideal foundation for building highly tailored and complex editing environments.
System Architecture
The relationship between the schema, the API, and the final output can be visualized as follows:
Key Capabilities
| Feature | Description |
|---|---|
| Schema-Based | Allows for the precise definition of document architecture. |
| Deluxe API | An interface meticulously crafted for maximum versatility and generality. |
| Modular | Built via extensions, allowing developers to swap or tweak components. |
| Accessible | Fully optimized for mobile, keyboard-only navigation, and screen readers. |
| RTL Support | Native awareness of Right-to-Left writing directions in both UI and content. |
Advanced Functionality
- Structured Content: Supports complex trees including:
- Nested lists
- Tables
- Captioned figures
- Bespoke custom structures
- Functional Design: Much of the codebase utilizes a functional programming style to ensure .
- Real-time Collaboration: Enables concurrent multi-user editing. The system handles the merging of edits, which can be thought of as:
Implementation Example
While the API is vast, a basic configuration might look like this:
const editor = new Wordgard.Editor({
schema: myCustomSchema,
extensions: [
Wordgard.Collaboration,
Wordgard.RTLSupport
]
});
Project Status & Community
- Open Source
- MIT Licensed
- Commercial Funding (Socially encouraged)
Licensing & Support:
Wordgard is released under the permissive MIT license. While there are no legal requirements for payment, there is a social expectation that commercial entities using the library contribute to its ongoing maintenance.
For technical inquiries or community discussions, please visit the official forum.