webpage css overrides ckeditor 3 style

馋奶兔 提交于 2019-12-06 08:24:02

Ah, fun.

Specificity to the rescue.

Create a new stylesheet that overrides that a { color: red !important} }. Make it something that suits you, and make sure that it ALWAYS gets loaded after your evil style sheet and before the CKEditor sheet. For example:

a { color: lemonchiffon !important; }

But please read the link...specficity is fairly specific.

The 2.x style wrapper iframe (which would by default solve this problem) was removed for performance reasons and is not possible via an option but only if I implement it my self.

What I did to overcome this problem was to modify the css files of the "kama" skin, adding !important rules to where I needed them. I don't feel this is an acceptable solution though.

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