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

EditModes setting ignored in page layouts

4 Answers 76 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 20 Apr 2010, 12:49 PM
Dear Telerik team,

I am using the following setting in both ConfigFile.xml and ListConfigFile.xml:

<property name="EditModes">Design,Html</property>

This works well in lists and RadEditor Web Parts. However, in page layouts (e.g. in the "Page Content" field, which is of type "Publishing HTML"), this settings seems to be ignored. It always displays "Design" and "Preview". See screenshots, which were taken from the same page.

I'm using version 5.62 (01/15/2010) (2009.3.1314) on MOSS 2007

Any idea?

4 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 20 Apr 2010, 12:52 PM
Hello Martin,

Could you provide me with the contest of your ConfigFile.xml and ListConfigFile.xml files? I will use them in order to try reproducing the issue on our test server.


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
Martin
Top achievements
Rank 1
answered on 20 Apr 2010, 01:10 PM
Here it is. I have verified both files are 100% identical.

<?xml version="1.0" encoding="utf-8" ?>
<!-- ==============================================================================================
 Config File valid structure:
 <configuration>
    <property>...</property>
    ...
  <property>
   <item>...</item>
   <item>...</item>
   ...
  </property>
  ...
 </configuration>
=============================================================================================== -->
<configuration>
 <property name="NewLineBr">true</property>
 <property name="TableLayoutCssFile">/_layouts/STYLES/Custom/TableDesigns.css</property>
 <property name="UseSharedToolbar">false</property>
 <property name="EditModes">Design,Html</property>
 <property name="ToolbarMode">ShowOnFocus</property>
 <property name="Height">360px</property>
 <property name="Width">680px</property>
 <property name="ExternalDialogsPath">/_wpresources/RadEditorSharePoint/5.6.2.0__1f131a624888eeed/Resources</property>
</configuration>
0
Martin
Top achievements
Rank 1
answered on 20 Apr 2010, 01:35 PM
I found the cause myself.

The control itself was configured so it wouldn't allow HTML editing, as follows:

<PublishingWebControls:RichHtmlField FieldName="PublishingPageContent" runat="server" id="RichHtmlField1" AllowHtmlSourceEditing="False"></PublishingWebControls:RichHtmlField>

So setting AllowHtmlSourceEditing="True" fixed the problem.

What's confusing, however, is the fact that the "Preview" tab was displayed instead of the HTML tab, so you might want to look into that.

Best,
Martin
0
Stanimir
Telerik team
answered on 20 Apr 2010, 01:54 PM
Hi Martin,

Thank you for the provided information. I will log this in our bug-tracking system.

Best wishes,
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
WebParts for SharePoint
Asked by
Martin
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Martin
Top achievements
Rank 1
Share this question
or