This is a migrated thread and some comments may be shown as answers.

I need to disable or remove cssEditor.css from presetation mode in edit mode its fine to have it.

5 Answers 81 Views
Editor
This is a migrated thread and some comments may be shown as answers.
amit aggarwal
Top achievements
Rank 1
amit aggarwal asked on 05 Apr 2010, 03:40 PM
I need to disable or remove cssEditor.css from presetation mode in edit mode its fine to have it. please let me know how i can achieve this.

Thanks,
amit

5 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 06 Apr 2010, 12:31 PM
Hi Amit,

Review the following online help article http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html.

What you need to do is set the cssFiles collection. Also rename the CssEditor.css because it is automatically loaded in presentation mode of WCM and webpart scenario.


All the best,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
amit aggarwal
Top achievements
Rank 1
answered on 14 Apr 2010, 10:02 AM
Thanks Staminir, renaming cssEditor.css worked as expected. Now i have another issue :)

I have upgraded rad editor to the latest version 5.7 earlier it was 5.0, now when i copied my custom config and tools xml from old version to new, cssFile rule stopped working.

Css dropdown is showing some defualt table styles which i wanted to update. table style css and cssEditor css both are not reflecting properly.

My requirement is table css class dropdown should show only table styles and apply css dropdown should display normal classes other then table styles.

Please help me out.

Thanks,
Amit Aggarwal.
0
Stanimir
Telerik team
answered on 15 Apr 2010, 11:34 AM
Hi ami,

Could you provide me with your ConfigFile.xml, ListConfigFile.xml, ToolsFile.xml, ListToolsFile.xml files?

Kind regards,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
amit aggarwal
Top achievements
Rank 1
answered on 15 Apr 2010, 12:41 PM

ConfigFile.xml
<?xml version="1.0" encoding="utf-8" ?>
<!-- ==============================================================================================
 Config File valid structure:
 <configuration>
    <property>...</property>
    ...
  <property>
   <item>...</item>
   <item>...</item>
   ...
  </property>
  ...
 </configuration>
=============================================================================================== -->
<configuration>
  <property name="ToolbarMode">ShowOnFocus</property>
  <property name="ExternalDialogsPath">/_wpresources/RadEditorSharePoint/5.7.1.0__1f131a624888eeed/Resources/</property>
  <property name="StripFormattingOptions">AllExceptNewLines</property>
  <property name="ToolbarMode">Default</property>
  <property name="TableLayoutCssFile">/_wpresources/RadEditorSharePoint/5.7.1.0__1f131a624888eeed/Resources/tableCssLayout.css</property>
<property name="ImagesPaths">
 <item>/PublishingImages</item>
</property>
   <property name="CssFiles">
        <item name="/_wpresources/RadEditorSharePoint/5.7.1.0__1f131a624888eeed/Resources/cssEditorApollo.css"></item>
     </property>
</configuration>


ListConfigFile.xml

<?xml version="1.0" encoding="utf-8" ?>
<!-- ==============================================================================================
 Config File valid structure:
 <configuration>
    <property>...</property>
    ...
  <property>
   <item>...</item>
   <item>...</item>
   ...
  </property>
  ...
 </configuration>
=============================================================================================== -->
<configuration>
 <property name="EditModes">Design,Html</property>
 <property name="Height">240px</property>
 <property name="TableLayoutCssFile">/_wpresources/RadEditorSharePoint/5.7.1.0__1f131a624888eeed/Resources/tableCssLayout.css</property>
 <property name="UploadImagesPaths">
        <item>/PublishingImages/</item>
     </property>
   <property name="CssFiles">
        <item name="/_wpresources/RadEditorSharePoint/5.7.1.0__1f131a624888eeed/Resources/cssEditorApollo.css"></item>
     </property>
 

</configuration>

ToolsFile.xml
<root>
  <tools name="InsertToolbar" enabled="true" >
   <tool name="InsertSymbol" />
    <tool name="FormatStripper" />
    <tool name="AjaxSpellCheck"/>
    <tool name="ImageManager" shortcut="CTRL+M"/>
 </tools>
  <tools name="InsertToolbar" enabled="true" >
    <tool name="InsertTable" />
    <tool name="ToggleTableBorder" />
    <tool name="ToggleScreenMode" />
    <tool name="Help" />
  </tools>
  <tools enabled="true">
    <tool name="Undo" />
    <tool name="Redo" />
    <tool separator="true"/>
    <tool name="Cut" />
    <tool name="Copy" />
 </tools>
 <tools enabled="true">
  <tool name="PastePlainText" />
    <tool name="PasteAsHtml"  />
    <tool separator="true"/>
    <tool name="InsertParagraph" />
 <tool name="InsertHorizontalRule" />
 </tools>
 <tools enabled="true">
 <tool name="FormatBlock" />
   
  </tools>
  <tools enabled="true" dockable="true">
    <tool name="Bold" />
    <tool name="Italic" />
    <tool name="Underline" />
 </tools>
    <tools enabled="true" dockable="true">
    <tool name="JustifyLeft" />
    <tool name="JustifyCenter" />
    <tool name="JustifyRight" />
 </tools>
  <tools enabled="true" dockable="true">
    <tool name="Indent" />
    <tool name="Outdent" />
    <tool name="InsertOrderedList" />
    <tool name="InsertUnorderedList"/>
 </tools>
 <tools enabled="true" dockable="true">
    <tool name="AbsolutePosition" />
    <tool name="LinkManager" />
    <tool name="Unlink" />
  </tools>
  <tools name="DropdownToolbar" dockable="true" >
    <tool name="ApplyClass"/>
  </tools>
  <links>
  </links>
  <symbols></symbols>
  <fontNames></fontNames>
  <fontSizes></fontSizes>
  <colors></colors>
  <classes></classes>
  <paragraphs>
   <paragraph name="Clear formatting" value="&lt;body&gt;" />
   <paragraph name="&lt;H1&gt;Heading 1&lt;/H1&gt;" value="&lt;H1&gt;" />
   <paragraph name="&lt;H2&gt;Heading 2&lt;/H2&gt;" value="&lt;H2&gt;" />
 </paragraphs>
  <dialogParameters></dialogParameters>
  <languages></languages>
  <cssFiles>
    <item name="/_wpresources/RadEditorSharePoint/5.7.1.0__1f131a624888eeed/Resources/cssEditorApollo.css" />
  </cssFiles>
</root>

ListToolsFiles.xml
<root>
  <tools name="InsertToolbar" enabled="true" >
   <tool name="InsertSymbol" />
    <tool name="FormatStripper" />
    <tool name="AjaxSpellCheck"/>
    <tool name="ImageManager" shortcut="CTRL+M"/>
 </tools>
  <tools name="InsertToolbar" enabled="true" >
    <tool name="InsertTable" />
    <tool name="ToggleTableBorder" />
    <tool name="ToggleScreenMode" />
    <tool name="Help" />
  </tools>
  <tools enabled="true">
    <tool name="Undo" />
    <tool name="Redo" />
    <tool separator="true"/>
    <tool name="Cut" />
    <tool name="Copy" />
 </tools>
 <tools enabled="true">
  <tool name="PastePlainText" />
    <tool name="PasteAsHtml"  />
    <tool separator="true"/>
    <tool name="InsertParagraph" />
 <tool name="InsertHorizontalRule" />
 </tools>
 <tools enabled="true">
 <tool name="FormatBlock" />
   
  </tools>
  <tools enabled="true" dockable="true">
    <tool name="Bold" />
    <tool name="Italic" />
    <tool name="Underline" />
 </tools>
    <tools enabled="true" dockable="true">
    <tool name="JustifyLeft" />
    <tool name="JustifyCenter" />
    <tool name="JustifyRight" />
 </tools>
  <tools enabled="true" dockable="true">
    <tool name="Indent" />
    <tool name="Outdent" />
    <tool name="InsertOrderedList" />
    <tool name="InsertUnorderedList"/>
 </tools>
 <tools enabled="true" dockable="true">
    <tool name="AbsolutePosition" />
    <tool name="LinkManager" />
    <tool name="Unlink" />
  </tools>
  <tools name="DropdownToolbar" dockable="true" >
    <tool name="ApplyClass"/>
  </tools>
  <links>
  </links>
  <symbols></symbols>
  <fontNames></fontNames>
  <fontSizes></fontSizes>
  <colors></colors>
  <classes></classes>
  <paragraphs>
   <paragraph name="Clear formatting" value="&lt;body&gt;" />
   <paragraph name="&lt;H1&gt;Heading 1&lt;/H1&gt;" value="&lt;H1&gt;" />
   <paragraph name="&lt;H2&gt;Heading 2&lt;/H2&gt;" value="&lt;H2&gt;" />
 </paragraphs>
  <dialogParameters></dialogParameters>
  <languages></languages>
  <cssFiles>
    <item name="/_wpresources/RadEditorSharePoint/5.7.1.0__1f131a624888eeed/Resources/cssEditorApollo.css" />
  </cssFiles>
</root>

0
Stanimir
Telerik team
answered on 20 Apr 2010, 01:23 PM
Hi ami ,

I apologize for the inconvenience, but in order for my test to be accurate I will need the  cssEditorApollo.css and tableCssLayout.css files as well.

What you should know is:

1. You can not set CssFiles collection in the ConfigFile.xml, so first remove the following code from both ConfigFile.xml and ListCoinfigFile.mxl:
<property name="CssFiles">
        <item name="/_wpresources/RadEditorSharePoint/5.7.1.0__1f131a624888eeed/Resources/cssEditorApollo.css"></item>
</property>

2. In the ListConfigFile.xml you set UploadImagesPaths. Make sure that you rename UploadImagesPaths to ImagesPaths

All the best,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
amit aggarwal
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
amit aggarwal
Top achievements
Rank 1
Share this question
or