Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Styles Dropdown Not Populated When Editing Blogs View modes: 
User avatar
Member
Member
scott_hancock-urmc.rochester - 2/14/2013 8:39:33 AM
   
Styles Dropdown Not Populated When Editing Blogs
I'm using V6.0.58 and I've configured the CKeditor to use the stylesheetparser plugin so the Style drop down is populated from the CSS in the Kentico database.

I've added/editted the following lines in the /CMSAdminControls/CKEditor/config.js.
config.extraPlugins = 'CMSPlugins,stylesheetparser';
config.contentCss = '/CMSTemplates/URMC/content.css';
config.stylesSet = [];

This works fine on pages but the Styles dropdown in the editor is not being populated when I edit a blog post. So if I'm editing the Post text field of a blog and click the Styles dropdown, it's empty.

Why is this not working for blogs?

Thanks,
Scott

User avatar
Member
Member
kentico_edwardh - 2/14/2013 12:27:23 PM
   
RE:Styles Dropdown Not Populated When Editing Blogs
Hello Scott,

It's possible the blog post is using a different toolbar set than the standard pages. You should see several toolbar sets defined in~\CMSAdminControls\CKeditor\config.js, please ensure your toolbar set is loading your custom styles.

Best Regards,
Edward Hillard

User avatar
Member
Member
scott_hancock-urmc.rochester - 2/14/2013 12:42:29 PM
   
RE:Styles Dropdown Not Populated When Editing Blogs
I see the other toolbar configs but the call to add the CSS plugin is global and seperate from those. It's at the top of the config file.

User avatar
Member
Member
kentico_edwardh - 2/20/2013 4:03:44 PM
   
RE:Styles Dropdown Not Populated When Editing Blogs
Hello,

The contentCss is by default set during every CKeditor initialization. You can change the stylesheet used in the editor by going to the properties of the editable region web part and setting the "HTML editor css stylesheet:" to your stylesheet. The stylesheet has to be added in CMSSitemanager / Development / CSS Stylesheets. If the editor is used in some document property, this can be set in CMSSiteManager / Development / Document types / <your document type> / Fields / <your field> / CSS stylesheet.

Best Regards,
Edward Hillard

User avatar
Member
Member
scott_hancock-urmc.rochester - 2/21/2013 8:55:56 AM
   
RE:Styles Dropdown Not Populated When Editing Blogs
As I mentioned in my original post this only happens when editing a blog post, which is done from the form tab so there is no editable region to change.