首页 > Web开发 > 详细

Ckeditor5显示css样式

时间:2019-12-07 09:23:23      阅读:442      评论:0      收藏:0      [点我收藏+]

Ckeditor5在编辑模式是通过js加载样式的,但是在显示时没有提供,官方提供了两种方式来实现。

https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/content-styles.html

By taking it directly from this guide and saving it as a static resource in your application (e.g. content-styles.css) (recommended).
By generating it using a dedicated script. Learn more in the Development environment guide.

Important!

If you take a closer look at the content styles, you may notice they are prefixed with the .ck-content class selector. This narrows their scope when used in CKEditor 5 so they do not affect the rest of the application. To use them in the front–end, you will have to add the ck-content CSS class to the container of your content. Otherwise the styles will not be applied.

Ckeditor5显示css样式

原文:https://www.cnblogs.com/grj1046/p/12000336.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!