Title: [Plugin: CKEditor For WordPress] how to define styles
Last modified: August 20, 2016

---

# [Plugin: CKEditor For WordPress] how to define styles

 *  Resolved [CreativeMindsSolutions](https://wordpress.org/support/users/creativemindssolutions/)
 * (@creativemindssolutions)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/)
 * I am having troubled defining styles. I am using this config file but the style
   drop-down is empty. Any help ?
    ﻿ [paste large chunks of code at pastebin.com]
 * [http://wordpress.org/extend/plugins/ckeditor-for-wordpress/](http://wordpress.org/extend/plugins/ckeditor-for-wordpress/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Contributor [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284159)
 * Hi,
    where is mentioned file ? You give a link to our plugin.
 *  Thread Starter [CreativeMindsSolutions](https://wordpress.org/support/users/creativemindssolutions/)
 * (@creativemindssolutions)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284179)
 * Here is the code
    _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Plugin Contributor [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284218)
 * [@creativemindssolutions](https://wordpress.org/support/users/creativemindssolutions/)
   
   I don’t see anything when I click on pastebin link. Did you paste wrong link 
   or something is broken ?
 *  Thread Starter [CreativeMindsSolutions](https://wordpress.org/support/users/creativemindssolutions/)
 * (@creativemindssolutions)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284219)
 * link to code
    [http://pastebin.com/LYYUD8z5](http://pastebin.com/LYYUD8z5)
 *  Plugin Contributor [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284300)
 * Ok, we will try check this ASAP, please be patient.
 *  Plugin Contributor [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284325)
 * Hi,
    in /wp-content/plugins/ckeditor-for-wordpress directory (folder) there is
   file called ‘ckeditor.styles.js’. Open it and change to your content (style which
   you linked in your post). After this in CKEDITOR “Advanced settings” select “
   Use theme ckeditor.styles.js” in “Predefined styles” select/drop-down box. After
   saving you should see your styles in CKEditor.
 *  Thread Starter [CreativeMindsSolutions](https://wordpress.org/support/users/creativemindssolutions/)
 * (@creativemindssolutions)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284332)
 * Tnx for your reply
 * This still does not work and the style drop down is empty
 * I am sending links to my ckeditor.styles.js file
    [http://pastebin.com/AbP38r3n](http://pastebin.com/AbP38r3n)
 * and also my new ckeditor.config.js
    [http://pastebin.com/T7xuqbuH](http://pastebin.com/T7xuqbuH)
 * I have changed the “Advanced settings” and selected “Use theme ckeditor.styles.
   js” in “Predefined styles” select/drop-down box.
 *  Plugin Contributor [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284393)
 * Try change this `CKEDITOR.addStylesSet('WordpressFull',[` to
    `CKEDITOR.addStylesSet('
   wordpress',` in your ckeditor.styles.js. In “Advanced settings” set “CKEditor
   default” option. Sorry for mistake in my latest post. After save and refresh 
   in browser (remember to clear browser’s cache) it should work.
 *  Thread Starter [CreativeMindsSolutions](https://wordpress.org/support/users/creativemindssolutions/)
 * (@creativemindssolutions)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284414)
 * It didn’t work…
 * I have found a post with the same description and the solution they suggested
   was
    ….make it work by replacing CKEDITOR.addStylesSet with CKEDITOR.stylesSet.
   add. [http://dev.ckeditor.com/ticket/5246](http://dev.ckeditor.com/ticket/5246)
 * This does work.
 * Thanks for helping
 *  Plugin Contributor [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284415)
 * I my case it work, but good that you found a solution. Maybe we use some different
   version of plugin CKEditor.
    Good that problem is solved.
 *  Thread Starter [CreativeMindsSolutions](https://wordpress.org/support/users/creativemindssolutions/)
 * (@creativemindssolutions)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284421)
 * Another issue come up…once I have defined the style file
    [http://pastebin.com/882M4PUA](http://pastebin.com/882M4PUA)
 * The Object styles does not appear in Styles combo
 * I have found another post reporting this but could not find any solution
    [http://dev.ckeditor.com/ticket/6142](http://dev.ckeditor.com/ticket/6142)
 * Any idea how to solve this ?
    (again I am using the last version of the WP plug
   and The last version or WP, I have also tested the with several browsers and 
   it behaves the same)
 *  Plugin Contributor [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284422)
 * this issue on CKEditor trac is not confirmed and have no milestone attached to
   it, so it will be not fixed soon (it is not confirmed).
    Do you see any JavaScript
   errors ? Your styles don’t appear in all browser ?

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘[Plugin: CKEditor For WordPress] how to define styles’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ckeditor-for-wordpress_fbf8d9.svg)
 * [CKEditor for WordPress](https://wordpress.org/plugins/ckeditor-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ckeditor-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ckeditor-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/ckeditor-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ckeditor-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ckeditor-for-wordpress/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [michal](https://wordpress.org/support/users/michal_cksource/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-define-styles/#post-2284422)
 * Status: resolved