AI Agent Hub
Back to skills
HTML Visual Editor Injector icon

HTML Visual Editor Injector

Development Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please install @user_1153a47f/ironox-html-editor according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Single-file HTML reports, proposals, and research pages often need repeated edits to client names, wording, fonts, and colors. Asking non-technical users to modify markup directly is brittle and can easily break layout or styling. This skill injects a lightweight visual editor into the static page so changes can be made directly in the browser.

How It Works

  • Injection: place editable-inject.js in the same directory as the HTML file and add one script reference.
  • Editing: uses contenteditable for click-to-edit text, Cmd/Ctrl+E to enter or exit edit mode, Cmd/Ctrl+S to save to localStorage, Esc to discard changes, and up to 10 undo/redo steps.
  • Formatting: includes find/global replace, separate Latin and CJK font controls, selected-range color picking, style reset, initial-state restore, and export of a clean final HTML file without editor code.
  • Persistence: restores drafts by data-edit fields rather than replacing the entire body.

Boundaries

Use it for customer-facing single-file proposals, reports, and research pages. Avoid engineering products that use package.json, frameworks, routing, or state management. Known limitations include unreliable font styling across multiple contenteditable blocks, so format paragraph by paragraph; keep data-edit values unique and preserve the intended save, exit, and cancel semantics.

Use Cases

  • Replace client names in a proposal HTML, adjust selected font and color, then export clean HTML.
  • Send a single-file research HTML to non-technical colleagues for click-to-edit text and draft saving.
  • Batch replace terms in a report HTML, set Latin and CJK fonts separately, and reset the original theme.
  • Revise a one-page proposal after client feedback by editing text and styles without breaking page structure.

Best For

  • Front-end engineers who need to hand a single-file HTML proposal to clients for editing
  • Consultants who often deliver single-file research pages and need clients to revise wording
  • Solutions owners preparing client reports and replacing client names, fonts, and colors
  • Delivery teams that want non-technical colleagues to edit static HTML without changing source code