Core Concepts
Click-to-edit candidate model
rich-html-editor identifies candidate content elements such as:
p,span,divh1–h6- other text-oriented elements
These elements become editable when the user clicks or focuses them.
Editing is interaction-driven, not attribute-driven.
Internal element tracking
During editing, the editor assigns internal
data-rhe-id attributes to elements.
These IDs are used for:
- Undo / redo history
- Change snapshots
- Clean HTML export
All editor-added attributes are removed when exporting HTML.
Non-goals
- No layout manipulation
- No free-form DOM editing
- No page-builder behavior
Future strict editing
A future strict-editing mode may require authors to explicitly mark editable regions.
This behavior is not enabled in the current release.