foundation from DOKSoft messes with CMS stylesheets Solved

User's avatar
Sven W.
20:10 Apr 09, 2015
After integration not only the CKEditor (iframe) has foundation implemented but also the parent CMS system (parent of iframe).
Everything in the CMS is now styled by foundation! I only want the CKEditor styled by foundation.
How to prevent that from happening?
Support team avatar
JS+
21:14 Apr 14, 2015
Hello,

This is very strange due to iframe can not apply anything to parent document.
Are you sure you are running CKEditor in iframe? I guess you assume that CKEditor itself uses iframe for editing contents.
In this case this parameter will help you (place it in your 'config.js' file):
config.doksoft_foundation_include_to_global_doc_too = false;

...But in this case you will lose ability to style all dialogs with Foundation (they are not displayed in iframes due to CKEditor's design). For example Foundation Button add-on will unable to show different buttons and show you correct preview. To prevent this you can add Foundation CSS to your admin CMS' theme manually _before_ its own CSS to set its priority lower then your custom CSS. This way may also need editing your CSS to override Foundation's styles correctly.