开发者

CKEditor -- seeing styles in editor window

开发者 https://www.devze.com 2023-03-03 00:45 出处:网络
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 p

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 开发者_Go百科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.)


Use config.contentsCss = your stylesheet

0

精彩评论

暂无评论...
验证码 换一张
取 消