Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > CKEditor: Multiple sites in one Kentico installation need different styles View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
spengelly - 9/5/2013 10:48:48 AM
   
CKEditor: Multiple sites in one Kentico installation need different styles
I have a Kentico 7 project with multiple sites in a single installation. I need to provide content editors different styles in the WYSIWYG editor per site. Users from site A should not be able to apply styles from site B.

Is there an easy way to provide CKEditor the context of which site it is editing? If the CKEditor knew what the CMSContext.CurrentSiteName was, i could switch the path to the styles.js file and load in styles per site.

Any help or workarounds would be appreciated.

Thanks.

User avatar
Member
Member
kentico_sandroj - 9/5/2013 11:13:18 AM
   
RE:CKEditor: Multiple sites in one Kentico installation need different styles
Hello,

You have the ability to specify a Toolbar set and a few other options in the document type settings under Site Manager > Development > Document Types > [edit]YourDocType > Fields > WYSIWYG Field. You could use a custom macro to specify a set based on the current site. This may not cover all approaches so please let me know if this will work for you.

User avatar
Certified Developer v7
Certified  Developer v7
spengelly - 9/5/2013 11:45:37 AM
   
RE:CKEditor: Multiple sites in one Kentico installation need different styles
Its not the toolbar set, rather the styles that feed into the toolbar. I know how to specify which set of buttons to show.

Also, its not for a document type per se, rather a whole site. This would include all document types that include text area fields, and webparts in the template that are editable text. So, this wouldn't be a solution.

User avatar
Member
Member
kentico_sandroj - 9/5/2013 3:36:21 PM
   
RE:CKEditor: Multiple sites in one Kentico installation need different styles
Hello,

Thank you for the clarification. In that case, I would have to refer you to the CKEditor support as this would have to be configured outside of Kentico. One approach that you can take is to install each site in a separate instance which would allow you to use different CKEditors. You may also be able to configure this through IIS but we do not support it so we cannot provide any instructions.

Please let me know if you have any questions.

Best Regards,
Sandro Jankovic