OpenDash CMS pairs an embedded TinyMCE RichText editor with a strict draft/publish state machine, versioned revision snapshots, isolated per-user autosave, and non-destructive Trash recovery across Posts, Pages, and Custom Post Types.

TinyMCE Authoring & HTML Sanitization Rules
The classic RichText editor gives writers familiar formatting for headings (h2–h4), paragraphs, lists, links, blockquotes, tables, media embeds, and <pre><code> blocks. To guarantee zero stored XSS across themes, sanitize_richtext normalizes saved HTML and strips arbitrary class attributes or custom tags.
- Best for Classic TinyMCE: Articles, blog posts, policies, reference tables, and standard code fences (which
opendashcms-themeenhances with Copy headers client-side). - Best for OpenDash Studio Mode 2: Pages requiring multi-column grids, interactive
core/tabs, alert callouts, or labeled code blocks. See OpenDash Studio.
Save (Draft) vs Publish Workflows
Publication behavior follows each Content Type's policy:
draft_publish(Posts, Pages, Docs, editorial CPTs): Clicking Save writes changes to the draft entry and leaves your live public URL serving the prior published state (or returning 404/hidden if never published). Clicking Publish promotes the draft live and triggers sitemap/search re-indexing.immediate(Structured registry CPTs): Designed for lightweight directory entries without draft staging — every save goes live immediately.
Revisions (Up to 25 Snapshots), Diff & Autosave
Every saved update records an entry revision inside SQLite (retaining up to 25 recent revisions per entry with paged lookup):
- Compare & Diff: Inspect structured differences between any two saved revision IDs — or compare a saved revision against your active
autosavedraft — before rolling back. - Per-User Autosave Checkpoints: Draft edits persist continuously to isolated user autosave storage (
GET/PUT/DELETE .../autosave) keyed by monotonic sequence counters so refreshing or closing a tab never wipes unpublished prose. - Restore Revision: Restoring an older revision writes it cleanly as the newest state without destroying prior audit history.
Trash, Restore, Duplicate & Explicit Purge
OpenDash uses a non-destructive two-stage delete lifecycle:
- Move to Trash: Unpublishes the entry from public pages, sitemaps, and search results while keeping custom field values, taxonomy links, and
media_refspins intact. - Restore or Duplicate: Recover trashed entries back into draft/active tables, or click Duplicate on any entry to clone a fresh starting copy.
- Explicit Purge: Permanently erases a trashed entry and releases unused media delete locks (Admin confirmation required).
Next Steps
- Define your own structured types and fields in Content Models: CPTs, Taxonomies & 25 Field Types.
- Design responsive multi-column pages visually in OpenDash Studio.