rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:gustock/TinyMCE-for-Deepseek-Harness
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Edit .html and .htm files visually with TinyMCE inside the DeepSeek Harness Better Sidebar.
Open an HTML file from the file tree (or from an agent file link) and it opens in a
WYSIWYG editor instead of the plain code editor. Edits save back to disk with
conflict detection, while the document's doctype, <head>, scripts and comments
are preserved byte-for-byte.

>= 0.2.1-rc.2dsh-better-sidebar >= 0.28.0Ctrl/Cmd+S, with dirty indicator and save states.<style> blocks are replayed in the editing surface so the WYSIWYG view
resembles the real page.dsh plugin --profile web add dsh-tinymce-html-editor
dsh plugin --profile web add github:gustock/TinyMCE-for-Deepseek-Harness
Use Settings → Plugins → Install bundle, or:
// plugin_manager
{ action: 'install_bundle', target: 'dsh-tinymce-html-editor@1.0.0' }
Either way the bundle inserts one Loader row, tinymce-html-editor. The Better
Sidebar bundle must already be installed and enabled for the viewer to appear.
After installing into an already-open GUI, refresh the page once if the viewer does not appear immediately: a freshly added client module is picked up by the live plugin graph, but a page that booted before the install may still be running its old module set.
To remove it: plugin_manager remove_bundle with dsh-tinymce-html-editor, or
the Plugins page.
| Item | Requirement |
|---|---|
| DeepSeek Harness | >= 0.2.1-rc.2 |
| Better Sidebar | >= 0.28.0 (the viewer registers through its ctx.betterSidebar service) |
| Host Node.js | >= 20 |
| Platforms | macOS, Windows, Linux through the DSH web/desktop UI |
| TinyMCE | 6.8.6, vendored (MIT) |
Verified on DSH 0.2.1-rc.2 (desktop, macOS) with Better Sidebar 0.28.0; the
package's unit tests and a headless-browser editor/save test pass.
.html/.htm files through the Better
Sidebar editor. Saves carry the file's mtime and are refused if it changed on
disk.GET/HEAD, traversal-guarded).The image above is the plugin's TinyMCE editing surface. A safe demo page ships in
sample.html; open it in the Better Sidebar and try editing,
saving, and reopening it.
| Half | File | Responsibility |
|---|---|---|
| Host | index.js |
Serves vendor/tinymce/** at /tinymce-editor/vendor/tinymce (GET/HEAD, MIME, traversal guard, ETag/304). |
| Client | client.js |
Registers the .html/.htm viewer (priority 20, fsRead), mounts TinyMCE, splices the edited body back into the original document, saves through /sidebar/write. |
TinyMCE 6 removed the fullpage plugin, so the viewer never feeds the whole
document to the editor. It splits the file at the <body> / </body> tags:
prefix (doctype + <html> + <head> + <body …>) ← untouched
body ← edited by TinyMCE
suffix (</body> + </html>) ← untouched
On save the editor's body HTML is placed back between prefix and suffix, so
doctypes, meta tags, head scripts/styles and comments survive exactly. Body
<script>/<style> blocks are additionally passed through TinyMCE's protect
option so they round-trip unchanged.
Files without a <body> tag (fragments/partials) are edited as a whole.
Saving uses the sidebar's own POST /sidebar/write route with the mtime the
file was loaded with. That keeps the workspace fence and the conflict check in
one place. A fs-conflict response becomes the reload banner.
<body> is preserved but not editable; use the
code editor for head changes.node --test test/client.test.mjs
The tests evaluate the real client bundle with a minimal React/DOM stub and cover the body splice, head-style extraction and viewer registration.
GET http://127.0.0.1:<port>/tinymce-editor/health reports:
{ "ok": true, "version": "1.0.0", "clientUrl": "plugins/??dsh-tinymce-html-editor/client.js&rev=…",
"clientReady": true, "clientReadyAt": 1730000000000 }
clientReady flips to true when a connected page has loaded the client half
and registered the viewer.
.
├── package.json # dsh.bundle patch + dsh.client web module
├── cordis.patch.yml # inserts the tinymce-html-editor row
├── index.js # Host: static TinyMCE asset route
├── client.js # Client: file viewer + editor component
├── locale/{en,zh}.json # Plugin Manager title/description
├── icon.svg
├── docs/ # README screenshot and submission notes
├── sample.html # safe demo page
├── test/client.test.mjs # document splice + registration tests
└── vendor/tinymce/ # TinyMCE 6.8.6 subset (MIT, see license.txt)
MIT. See LICENSE.
TinyMCE 6.8.6 is © Tiny Technologies, Inc. and is redistributed under the MIT
license; the full text and third-party notices are in
vendor/tinymce/license.txt and vendor/tinymce/notices.txt.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。