﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11332	Styles combo does not ever show object styles	Simon Holywell		"I have used the example code at: http://docs.ckeditor.com/#!/api/CKEDITOR.stylesSet to configure a Styles combo/drop down that includes an object style for images. The ""Image on Left"" object style is never present in the combo regardless of whether I have an image currently selected in the editor or not. It simply does not show up.

You can see my full config/replace call here:

{{{
CKEDITOR.replace(this, {
                    extraPlugins: ""widget,image2,stylesheetparser"",
                    contentsCss: ""/cms/editor/editor.css"",
                    filebrowserBrowseUrl: ""/cms/editor/jasfinder/index.html"",
                    disableNativeSpellChecker: false,
                    browserContextMenuOnCtrl: true,
                    stylesSet: [
                      { name: 'Strong Emphasis', element: 'strong' },
                      { name: 'Emphasis', element: 'em' },

                      { name: 'Computer Code', element: 'code' },
                      { name: 'Keyboard Phrase', element: 'kbd' },
                      { name: 'Sample Text', element: 'samp' },
                      { name: 'Variable', element: 'var' },

                      { name: 'Deleted Text', element: 'del' },
                      { name: 'Inserted Text', element: 'ins' },

                      { name: 'Cited Work', element: 'cite' },
                      { name: 'Inline Quotation', element: 'q' },

                      // Object Styles
    {
        name: 'Image on Left',
        element: 'img',
        attributes: {
            style: 'padding: 5px; margin-right: 5px',
            border: '2',
            align: 'left'
        }
    },

                        // Block Styles
    { name: 'Blue Title', element: 'h2', styles: { 'color': 'Blue' } },
    { name: 'Red Title' , element: 'h3', styles: { 'color': 'Red' } },

    // Inline Styles
    { name: 'CSS Style', element: 'span', attributes: { 'class': 'my_style' } },
    { name: 'Marker: Yellow', element: 'span', styles: { 'background-color': 'Yellow' } }
                    ]
                });
}}}
"	Bug	closed	Normal		Core : Styles		duplicate		
