diff --git a/CHANGELOG.md b/CHANGELOG.md
index b9215c5..63157a5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
V3
+* `3.8.0`: expose cm6 instance for dev
* `3.7.0`: better newline extension for current line
* `3.7.0`: `ctrl+click` to double click for tiddler navigation
* `3.6.1`: update readme video tutorial
diff --git a/package.json b/package.json
index 2a3c19a..2c5b844 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"registry": "https://registry.npmjs.org"
},
"license": "MIT",
- "version": "3.7.2",
+ "version": "3.8.0",
"packageManager": "pnpm@9.0.6",
"scripts": {
"update:config": " pnpm ts-node scripts/generateConfig.ts",
diff --git a/src/tiddlywiki-codemirror-6/engine.ts b/src/tiddlywiki-codemirror-6/engine.ts
index 85be071..62637b0 100644
--- a/src/tiddlywiki-codemirror-6/engine.ts
+++ b/src/tiddlywiki-codemirror-6/engine.ts
@@ -87,6 +87,10 @@ class CodeMirrorEngine {
// head: 3
// },
});
+
+ // 存储实例在 DOM 元素上
+ this.domNode.cm6 = this.editor;
+
// @see https://github.com/replit/codemirror-vim/issues/6
if (cm6.keymap() === 'vim' && cm6.insertModeFirst() && !options.value) {
let editor = getCM(this.editor);
diff --git a/src/tiddlywiki-codemirror-6/plugin.info b/src/tiddlywiki-codemirror-6/plugin.info
index 658af95..309207f 100644
--- a/src/tiddlywiki-codemirror-6/plugin.info
+++ b/src/tiddlywiki-codemirror-6/plugin.info
@@ -2,7 +2,7 @@
"title": "$:/plugins/oeyoews/tiddlywiki-codemirror-6",
"name": "CodeMirror6",
"description": "CodeMirror 6 editor",
- "version": "3.7.2",
+ "version": "3.8.0",
"core-version": ">=5.3.4",
"list": "readme settings changelog ",
"stability": "STABILITY_2_STABLE"