CSS to WYSIWIG Template

Profile picture for user marciamarciamarcia
marciamarciamarcia
Forums
Hello! I have created a custom theme based on Platon and use an external css. How can I add the CSS tags to the drop down list in the WYSIWYG editor for quick edits? I am using the CK editor. Thanks so much for any and all tips!
axel

Hi

Hi

I'm not sure about what you mean by "css tags".

If you want to add new styles in the dropdown list of your WYSIWYG editor, you can do it by creating a ckeditor.styles.js files in your theme folder in order to define the new styles (you can find more information here: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Styles),

Then in CKEditor profile -> advanced options -> Custom Javascript configuration, add :

config.stylesCombo_stylesSet = 'drupal:sites/all/themes/custom/<YOUR CUSTOM THEME>/ckeditor.styles.js'

(of course adapt with your own path)

You can find much more detailed tutorials on the internet

config.stylesCombo_stylesSet = 'drupal:sites/all/themes/custom/<YOUR CUSTOM THEME>/ckeditor.styles.js' - See more at: http://www.drupalwoo.com/content/how-customize-ckeditor-drupal-7-site#sthash.lo2CAeFY.dpufconfig.stylesCombo_stylesSet = 'drupal:sites/all/themes/custom/<YOUR CUSTOM THEME>/ckeditor.styles.js' - See more at: http://www.drupalwoo.com/content/how-customize-ckeditor-drupal-7-site#sthash.lo2CAeFY.dpufckeditor.styles.js#sthash.lo2CAeFY.dpufckeditor.styles.js#sthash.lo2CAeFY.dpufckeditor.styles.js#sthash.lo2CAeFY.dpuf
Profile picture for user marciamarciamarcia
marciamarciamarcia

CSS in WYSIWYG

Oops, I meant styles. :-0 Thanks for the tips!! Btw...LOVE OPIGNO!!
axel

Thanks :-)

Thanks :-)