Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4096784
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:05:27+00:00 2026-05-20T20:05:27+00:00

Im using Drupal with the WYSIWYG module. I want the CSS in my editor

  • 0

Im using Drupal with the WYSIWYG module.

I want the CSS in my editor to be the same as my page, so the colors and fonts, etc all look how they will when the page is saved. I have different CSS for different node types, and on certain pages. How can I import these CSS rules into the editor?

Using normal CSS selectors doesn’t work if the html is outside of the iframe used by Wysiwyg. Using ‘.cke_show_borders’ as a selector works, but then I cant load different styles on different node edit pages.

Ive posted this question on the modules page and it doesn’t seem there is an inbuilt solution, but has anyone found a work around to this problem? Would there be some javascript way of bringing styles into the iframe from the page outside it?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:05:27+00:00Added an answer on May 20, 2026 at 8:05 pm

    I’m afraid that the basic answer is, “Unfortunately, not for Drupal at the moment.” In order to truly see the CSS that is varying from page to page, the WYSIWYG system would need to be very, very “smart” and tightly integrated with other parts of the system – such as production of the headers that produce the CSS file links.

    I’ve actually worked on a module to try to achieve some of the functionality you describe here – allowing pages to choose different groups of CSS styles on different prepared stylesheets, where these stylesheets were then re-parsed out for specific use in the WYSIWYG editor. It was a lot of work, and unfortunately it’s not at a point of development where it would be good to share. The next likely step for Drupal would be to include this type of functionality, instead of auto-magically knowing whatever css you are throwing in your template – simply because the freedom Drupal gives you with templates means that that the “core” has no idea at all really of what you’re doing with CSS. If Drupal were to try to integrate template and editor css in the manner you describe, templating would either be majorly restricted, or a lot more complicated than it is now.

    If you use WYSIWYG API, you can designate your own stylesheet for the editor there – unfortunately, it’s not dynamic, so you can’t calculate the path of the stylesheet based on PHP code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using WYSIWYG module to implement FCKeditor in drupal. If i want to add
My drupal site (internal) will not display the TinyMCE editor when using Google Chrome
I'm making a forum and I'm using drupal6 advance-forum module. I browsed all the
Using Drupal 6, I'm trying to create a page with views that shows something
Working on site development using Drupal. Using View module also. I did defined severar
Is anyone out there using Drupal for large scale, business critical enterprise applications? Does
When you create a new content type in Drupal using the Content Creation Kit,
I have the occasion to produce Drupal web sites using development, staging, and production
I'm interested in using the WMD editor in another project * but I'm not
I'm trying to have an AHAH-enabled form with WYSIWYG fields in Drupal 6. Problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.