CKEditor — seeing styles in editor window

巧了我就是萌 提交于 2020-02-07 06:00:47

问题


I'd like a true WYSIWYG experience from CKEditor, but it seems that since the editor operates in an iframe, there's no way to have the styes that clients apply to their items appear as they should per a site's stylsheet within the editor port. That is, for example, text given an H1 markup appear with the browser's default style, not the styles that I have in my stylesheet.

Or is there a way to apply a stylesheet to the generated iframe that displays the editor instance?

Searches on "CKEditor styles" all turn up references to styling the editor (color scheme of the frame, etc.)


回答1:


Use config.contentsCss = your stylesheet



来源:https://stackoverflow.com/questions/5886160/ckeditor-seeing-styles-in-editor-window

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!