Adding to TableEditor Styles in RadEditor
I would like to add the the list of predefined table styles found when going into the table properties dialog. I have looked over the demo page here that talks about how to do this, but I am not having any luck.
Is this possible to do with the Text Editor settings or does this have to be done as a new control? I am not finding any literature showing the syntax for setting this in a toolsfile.xml format.
I have created a tablelayout.css file where I copied the styles found on the demo page. I then went to Administration -> Settings -> Text Editor and edited the default tool set. I have tried this two ways so far.
1.)I created a node like this.
<
tableLayoutCssFile
>
<
file
name
=
"~/Sitefinity/WebsiteTemplates/AaBoilerPlate/App_Themes/AaBoilerPlate/Styles/tablelaouts.css"
/>
</
tableLayoutCssFile
>
<
property
name
=
"TableLayoutCssFile"
>~/Sitefinity/WebsiteTemplates/AaBoilerPlate/App_Themes/AaBoilerPlate/Styles/tablelayouts.css</
property
>
Hello Stacey,
Thank you for using our services.
You can set the TableLayoutCss of Sitefintiy's content editor in the same manner it's being configured for our RadEditor control. For more information about the TableLayoutCss please check this online demo.
In order to configure this in Sitefinity you will need to map an external template for the Telerik.Sitefinity.Web.UI.Fields.HtmlField type and set the location of the TableLayoutCss in the codebehind:
protected
void
Page_Load(
object
sender, EventArgs e)
this
.editControl.TableLayoutCssFile =
"~/..."
;
Jen,
Thanks for the response with the template included. It seems to be doing what I needed. For anyone else that follows this keep in mind that if you are running recent versions of Sitefinity you can simply register the control template in the advanced settings under "controls > viewmap" instead of going through the complex file naming convention illustrated in the old blog post linked from above.