Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Table styles appearing in CKEditor View modes: 
User avatar
Member
Member
esolutions - 10/9/2013 3:46:17 PM
   
Table styles appearing in CKEditor
Hi,

I've tried to define a class to be applied to a table but it is not being displayed in the dropdown. In fact, if I have 10 lines code set up in the default.js file, and the table style is set up on line 5, everything above line 5 and below line 5 displays in the drop down.

The style I have defined is as follows:


CKEDITOR.stylesSet.add('default',
[
{name:'H1',element:'h1'},
{name:'H2',element:'p',attributes:{'class':'subtitle'}},
{name:'Content List',element:'p',attributes:{'class':'contentList'}},
{name:'Content Table',element:'table',attributes:{'class':'tableContent'}},
{name:'Table Header',element:'tr',attributes:{'class':'tableHeader'}},
{name:'H3',element:'h3'}]);


So lines 6 and 7 ("Content Table" and "Table Header") above are not appearing in the styles drop down.

Is there a reason why?

User avatar
Member
Member
kentico_sandroj - 10/9/2013 7:13:52 PM
   
RE:Table styles appearing in CKEditor
Hello,

Table styles belong under the Object styles category which only shows the available options when such an object is found on the page. Please try adding a table to the content area and check if the styles show up.

Please let me know how it turns out.

Best Regards,
Sandro

User avatar
Member
Member
esolutions - 10/10/2013 10:41:14 AM
   
RE:Table styles appearing in CKEditor
This worked! Thanks!