diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a32ead..8d6f95f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,8 @@ - 🐛 修复行内公式渲染的问题 #22 - 🐛 修复操作栏修改属性不生效的问题 #20 \[vditor] - 🐛 修复在 PJAX 主题下渲染器无法正常处理的问题 #24 -- 🐛 修复render样式与其他样式冲突的问题 +- 🐛 修复 render 样式与其他样式冲突的问题 +- 🐛 修复`插入图片`在 Safari 中不可用的问题 ### v1.5.1 diff --git a/console/src/model/DebugPanel.vue b/console/src/model/DebugPanel.vue index 0bb401a..930e6e6 100644 --- a/console/src/model/DebugPanel.vue +++ b/console/src/model/DebugPanel.vue @@ -11,6 +11,9 @@ Get Plugin Config + + Get Last Cursor +
Vditor DEBUG
@@ -30,6 +33,7 @@ const debugOpOpen = ref(false); const props = defineProps<{ vditor: Vditor | null; config: EditorConfig | undefined; + cursor: Range | undefined; }>(); const getHTML = () => { @@ -47,6 +51,12 @@ const getPluginConfig = () => { console.log("CONFIG: ", props.config); } }; + +const getCursor = () => { + if (props.cursor) { + console.log("LAST CURSOR", props.cursor); + } +};