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

[Bug Report] 文字组件 h1 的样式 编辑模式和预览模式不一致 #!en: text component appears differently inedit mode and preview mode #155

Closed
ly525 opened this issue Apr 25, 2020 · 1 comment

Comments

@ly525
Copy link
Owner

ly525 commented Apr 25, 2020

Edit Mode

image

Preview Mode

image

@ly525
Copy link
Owner Author

ly525 commented Apr 25, 2020

已修正,原因:

需要给预览模式的文字添加 ql-snow 样式原因:文字样式和文字编辑器(ql-editor)的 theme 有关系
比如编辑模式 h1 样式为:.ql-snow .ql-editor h1 {font-size: 2em;}
因此预览模式的文字内容也需要加上 div.ql-snow > div.ql-editor 作为wrapper

@ly525 ly525 closed this as completed in d64019e Apr 25, 2020
ly525 added a commit that referenced this issue Apr 25, 2020
#!zh: 文字组件 h1 的样式 编辑模式和预览模式不一致
#!en: text component appears differently inedit mode and preview mode
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

1 participant