Reputation: 1124
I need to define my own styling for table like we have some default table CSS class layouts as shown below.
although after some Google I found solution that how to define class for specific row, cell, column or main class for table but not complete styling layout like above.
Upvotes: 1
Views: 2048
Reputation: 782
The Telerik website shows how to get your own custom table classes into their editor. See the link below for how to create the style sheet.
http://demos.telerik.com/aspnet-ajax/editor/examples/tablelayoutcssfile/defaultcs.aspx
Once you've created your style sheet you'll need to modify the EditorPage.aspx file which Sitecore uses to render the Telerik RadEditor control.
<site root>\sitecore\shell\Controls\Rich Text Editor\EditorPage.aspx
Add the following line as a property of the telerik:RadEditor
control.
TableLayoutCssFile="~/sitecore/shell/Controls/Rich Text Editor/TableLayoutCss.css"
The above assumes the CSS file you created is named TableLayoutCss.css
.
Upvotes: 4