Tagged articles
contenteditable
11 articles · Page 1 of 1
This article explores the motivations, architectural choices, zero‑width character handling, data‑structure design, and implementation strategies—including execCommand, ContentEditable, and Canvas approaches—for creating a custom rich‑text editor that balances flexibility, performance, and browser compatibility.
contenteditabledata structurerich-text-editor
0 likes · 29 min read

This guide shows how to transform a standard HTML page into an interactive CSS editor by embedding a style element inside the body, adding the contenteditable attribute, and running a live server, enabling instant visual feedback for any CSS changes.
CSSHTMLcontenteditable
0 likes · 4 min read

This article explains how to build a custom React @mention input component that highlights mentioned users, treats the whole @username as a single deletable unit, tracks cursor position for a floating selector, and returns both the plain text and the list of mentioned users to the parent component.
MentionsReactTypeScript
0 likes · 12 min read

This article traces the history of editor technology from early terminal editors to modern web‑based and block‑style editors, examines key architectural components such as contentEditable, model‑view‑controller design, collaborative algorithms, and highlights future directions like multimodal GPT interaction.
CRDTCollaborationOT
0 likes · 24 min read

The article explains how the HTML contenteditable attribute enables in‑place editing, why legacy execCommand‑based editors are inconsistent, and how modern frameworks such as Slate.js—built on React and Immutable.js—provide a structured, location‑based data model with Transform and Node APIs for reliable, portable rich‑text editing.
JavaScriptReactSlate.js
0 likes · 12 min read


政采云技术Jul 26, 2022 · Frontend Development
This article introduces the concept of rich text in the frontend, explains two primary input methods (iframe with designMode and contenteditable elements), details the Selection API for handling text ranges, demonstrates toolbar commands using execCommand, and provides complete demo code for building a simple rich‑text editor.
HTMLRich Textcontenteditable
0 likes · 15 min read

This article explains the fundamentals of rich‑text editors, compares textarea and contenteditable approaches, introduces Quill’s delta format and parchment model, and provides step‑by‑step guidance for creating custom blots, handling media uploads, and processing paste events for seamless cross‑platform rendering.
DeltaQuillcontenteditable
0 likes · 15 min read

This article outlines the evolution of rich‑text editors through L0, L1, and L2 stages, comparing their underlying APIs, data models, selection handling, and collaborative capabilities, and evaluates the advantages and drawbacks of each stage with examples such as UEditor, Quill, Slate, and Google Docs.
collaborative editingcontenteditableoperational transformation
0 likes · 15 min read

The article explains how Notion implements a block‑tree data model and a controlled contenteditable editor using React, detailing the data layer, operation (op) system, rendering components, selection handling, text styling, and copy‑paste mechanisms, all backed by transactional undo/redo logic.
Block ModelNotionReact
0 likes · 27 min read

The article examines browsers' native contenteditable and execCommand features, compares traditional and modern rich‑text editors, highlights the challenge of uncontrolled input from diverse IMEs, and introduces Hugo.js's three‑layer shadow‑input architecture as a robust solution for international and mobile frontend applications.
Hugo.jscontenteditablerich-text-editor
0 likes · 10 min read


ITPUBApr 8, 2016 · Frontend Development
This article explains how entering a specially crafted data:text/html URI in the browser address bar creates a temporary, editable HTML page, and shows multiple community extensions that add syntax highlighting, theming, and custom behaviors using Ace editor and other tricks.
Ace editorbrowsercontenteditable
0 likes · 6 min read
