Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sv 模式高度错误 #328

Closed
lhlyu opened this issue Apr 19, 2020 · 2 comments
Closed

sv 模式高度错误 #328

lhlyu opened this issue Apr 19, 2020 · 2 comments
Assignees
Milestone

Comments

@lhlyu
Copy link

lhlyu commented Apr 19, 2020

  • 版本3.1.12
  • mode: 'sv'

演示

  • 问题
  1. 点击编辑框区域,光标不会自动聚焦,要点击第一行才会聚焦
  2. 光标初始化很小
@Vanessa219
Copy link
Owner

你看一下源码里面的 Demo 有没有这种问题?我这里无法重现。

@lhlyu
Copy link
Author

lhlyu commented Apr 19, 2020

@Vanessa219
我重新尝试了一下,下面的代码是有问题的

new Vditor('editor', {
    minHeight: 600,
    mode: 'sv',
})

改成这样就没问题了

new Vditor('editor', {
    height: 600,
    mode: 'sv',
})

@Vanessa219 Vanessa219 self-assigned this Apr 19, 2020
@Vanessa219 Vanessa219 added this to the 3.1.0 milestone Apr 19, 2020
@Vanessa219 Vanessa219 changed the title 光标问题 sv 模式高度错误 Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants