rennzhang / codemirror-editor-vue3

CodeMirror component for Vue3
https://rennzhang.github.io/codemirror-editor-vue3
MIT License
202 stars 41 forks source link

Focus the editor #39

Closed hudec117 closed 1 year ago

hudec117 commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to be able to focus the Codemirror editor.

Describe the solution you'd like Focus the editor using a .focus() like call. Or access to the underlying Codemirror instance to be able to call any documented functions.

rennzhang commented 1 year ago

I am not quite grasping the essence of your message. If you wish to bring focus to an editing box, you may use the following approach. Please refer to the documentation for details:https://renncheung.github.io/codemirror-editor-vue3/zh-CN/supplementary/instance

image image
hudec117 commented 1 year ago

That's what I'm looking for! Thanks