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

Copy and Paste from excel and have a weird format in Editor

3 Answers 83 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 20 Oct 2010, 09:50 PM


<
table style="width: 757pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0" width="1008"
<colgroup><col style="width: 18pt;" width="24" /><col style="width: 98pt;" width="131" /><col style="width: 56pt;" width="74" /><col style="width: 73pt;" width="97" /><col style="width: 66pt;" span="2" width="88" /><col style="width: 80pt;" width="106" /><col style="width: 90pt;" width="120" /><col style="width: 49pt;" width="65" /><col style="width: 90pt;" width="120" /><col style="width: 71pt;" width="95" /></colgroup
<tbody
<tr style="height: 15pt;" height="20"
<td style="border-bottom-color: #ece9d8; border-left: windowtext 1pt solid; background-color: transparent; border-top-color: #ece9d8; width: 18pt; height: 15pt; border-right-color: #ece9d8;" class="xl66" align="right"><strong><span style="font-family: arial; color: #0070c0; font-size: 13px;">1</span></strong></td
<td style="background-color: transparent; width: 668pt;border-color: #ece9d8;" class="xl67" colspan="9"><span style="font-family: arial; font-size: 13px;">Per policy, the bid exception such as a third bidder declined, sole source, or the lowest bid not selected was properly documented within the project</span></td
<td style="background-color: transparent; width: 71pt;border-color: #ece9d8;"></td
</tr
<tr style="height: 15pt;" height="20"
<td style="border-bottom-color: #ece9d8; border-left: windowtext 1pt solid; background-color: transparent; border-top-color: #ece9d8; height: 15pt; border-right-color: #ece9d8;" class="xl66"><strong><span style="font-family: arial; color: #0070c0; font-size: 13px;"> </span></strong></td
<td style="background-color: transparent;border-color: #ece9d8;" class="xl67" colspan="4"><span style="font-family: arial; font-size: 13px;">release summary. This was not deemed an exception. </span></td
<td style="background-color: transparent;border-color: #ece9d8;"></td
<td style="background-color: transparent;border-color: #ece9d8;"></td
<td style="background-color: transparent;border-color: #ece9d8;"></td
<td style="background-color: transparent;border-color: #ece9d8;"></td
<td style="background-color: transparent;border-color: #ece9d8;"></td
<td style="background-color: transparent;border-color: #ece9d8;"></td
</tr
<tr style="height: 15pt;" height="20"
<td style="border-bottom-color: #ece9d8; border-left: windowtext 1pt solid; background-color: transparent; border-top-color: #ece9d8; height: 15pt; border-right-color: #ece9d8;" class="xl66" align="right"><strong><span style="font-family: arial; color: #0070c0; font-size: 13px;">2</span></strong></td
<td style="background-color: transparent;border-color: #ece9d8;" class="xl68" colspan="9"><span style="font-family: arial; font-size: 13px;">Per Ken Stephenson, equipment only purchases without installation do not require signed contracts. This is not deemed an exception. </span></td
<td style="background-color: transparent;border-color: #ece9d8;"></td
</tr
<tr style="height: 15pt;" height="20"
<td style="border-bottom-color: #ece9d8; border-left: windowtext 1pt solid; background-color: transparent; border-top-color: #ece9d8; height: 15pt; border-right-color: #ece9d8;" class="xl66" align="right"><strong><span style="font-family: arial; color: #0070c0; font-size: 13px;">3</span></strong></td
<td style="background-color: transparent;border-color: #ece9d8;" class="xl68" colspan="10"><span style="font-family: arial; font-size: 13px;">These attributes were not tested here as this is a supplemental release issued for an existing contact/PO. See testing of the initial releases #25013 and #25117.</span></td
</tr
</tbody
</table>

Hi,
I am using Rad Telerik Ajax control version 2010.2.929.35, and try copy paste from excel to editor. Preview mode is fine and Design mode formates very weird. I also tried from telerik demo site.  The above is the html which is generated from Editor after I pasted from Excel. Copy these html to Editor under Html mode and you will see the problem from design view. Our application only enable the Design view for Editor.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Oct 2010, 02:04 PM
Hello James,

Please, see this help article: Content Area Appearance Problems.
The content area of RadEditor is styled by the following tags:

table
{
BORDER-RIGHT: #999999 1px dashed;
border-bottom: #999999 1px dashed;
}
table td
{
PADDING: 1px;
border-top: #999999 1px dashed;
BORDER-LEFT: #999999 1px dashed;
}
table th
{
PADDING: 1px;
border-top: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed;
}
which change the appearance of the table elements.

You can easily override the default content appearance by setting the CssFiles property to load an empty css file or a file which does not contain the above classes.

<telerik:RadEditor ID="RadEditor1" Runat="server">
   <CssFiles>
       <telerik:EditorCssFile Value="~/empty.css" />
   </CssFiles>
</telerik:RadEditor>


Kind regards,
Rumen
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
Mike
Top achievements
Rank 1
answered on 21 Oct 2010, 03:13 PM
Hi,
I tried your suggestion, but still... When you look at the  content on Design Mode, you will see some words are repeated (I highlighted on the image) and when you click on it , very stranger behavior happened. But preview  is fine...
0
Rumen
Telerik team
answered on 22 Oct 2010, 03:55 PM
Hi James,

I fixed the problem very easily by setting the ContentAreaCssFile property to point to an empty css file, e.g.

<telerik:RadEditor ContentAreaCssFile="Empty.css" ID="RadEditor1" runat="server"></telerik:RadEditor>

All the best,
Rumen
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
Mike
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Mike
Top achievements
Rank 1
Share this question
or