Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor michal

    (@michal_cksource)

    Hi,
    where is mentioned file ? You give a link to our plugin.

    Thread Starter CreativeMindsSolutions

    (@creativemindssolutions)

    Here is the code
    [Code moderated as per the Forum Rules. Please use the pastebin]

    Plugin Contributor michal

    (@michal_cksource)

    @creativemindssolutions
    I don’t see anything when I click on pastebin link.
    Did you paste wrong link or something is broken ?

    Thread Starter CreativeMindsSolutions

    (@creativemindssolutions)

    Plugin Contributor michal

    (@michal_cksource)

    Ok, we will try check this ASAP, please be patient.

    Plugin Contributor michal

    (@michal_cksource)

    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

    (@creativemindssolutions)

    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
    https://pastebin.com/AbP38r3n

    and also my new ckeditor.config.js
    https://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

    (@michal_cksource)

    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

    (@creativemindssolutions)

    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.
    https://dev.ckeditor.com/ticket/5246

    This does work.

    Thanks for helping

    Plugin Contributor michal

    (@michal_cksource)

    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

    (@creativemindssolutions)

    Another issue come up…once I have defined the style file
    https://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
    https://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

    (@michal_cksource)

    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.