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

当设置编辑器宽度后,模式切换导致样式错误 #276

Closed
codingcn opened this issue Apr 6, 2020 · 0 comments
Closed

当设置编辑器宽度后,模式切换导致样式错误 #276

codingcn opened this issue Apr 6, 2020 · 0 comments
Assignees
Milestone

Comments

@codingcn
Copy link

codingcn commented Apr 6, 2020

编辑模式

所见即所得模式
即时渲染模式
分屏编辑预览模式

描述问题

2020-04-06 14 33 56

两种情况都会产生以上问题

  1. 通过option设置width

上面的图片使用demo/static.html,里面的库是这个

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vditor@latest/dist/index.css"/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script>

配置我给width改成800

height: 500,
width: 800,
  1. 通过css设置也会发生变形
@Vanessa219 Vanessa219 self-assigned this Apr 6, 2020
@Vanessa219 Vanessa219 added this to the 3.0.0 milestone Apr 6, 2020
stevapple pushed a commit to stevapple/vditor that referenced this issue Apr 8, 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