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

quill图片显示的大小怎么控制 #2230

Closed
SkyliHaiLan opened this issue Aug 7, 2018 · 2 comments
Closed

quill图片显示的大小怎么控制 #2230

SkyliHaiLan opened this issue Aug 7, 2018 · 2 comments

Comments

@SkyliHaiLan
Copy link

SkyliHaiLan commented Aug 7, 2018

富文本编辑器状态是 editor.enable(false),是只读状态,当我上传一张很大的图片。屏幕上都超出去了,我想固定控制图片的宽度,求解?
image

@1c7
Copy link

1c7 commented Aug 22, 2018

我不是 quill 专家,不过根据你的描述和我觉得有两种方法

  1. 直接 css 控制
.editor{
   img{
     width: 100%;
  }
}
  1. 如果希望用户可以拉大缩小图片,我记得 quill 有几个 module 可以做到。

另外。建议能用英文就用英文。像这样的库里用中文大大减少了别人回复你的可能性

@SkyliHaiLan
Copy link
Author

@1c7 thank you for your reply. It has been solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants