USER GUIDE
guide
6 min read

Editing Posts, Pages, Revisions & Trash

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.

OpenDash CMS Classic Editor screen showing TinyMCE toolbar, document fields, Save and Publish controls
Figure 1: Classic TinyMCE editor workspace with Save (draft), Publish, taxonomy assignment, and custom metadata fields.

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-theme enhances 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 autosave draft — 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:

  1. Move to Trash: Unpublishes the entry from public pages, sitemaps, and search results while keeping custom field values, taxonomy links, and media_refs pins intact.
  2. Restore or Duplicate: Recover trashed entries back into draft/active tables, or click Duplicate on any entry to clone a fresh starting copy.
  3. Explicit Purge: Permanently erases a trashed entry and releases unused media delete locks (Admin confirmation required).

Next Steps

Edit Source URL:

Search OpenDash

Use Arrow keys & Enter to navigate Full search page →