Unplanned
Last Updated: 02 Oct 2018 07:33 by ADMIN
ADMIN
Hristo
Created on: 02 Oct 2018 07:29
Category: RichTextEditor
Type: Feature Request
1
FIX. RadRichTextEditor - skip invalid or empty attribute values on HTML import
Currently invalid attribute values, including invalid or empty values in CSS attributes in the 'style' attribute, could cause importing property with incorrect value, or NullReferenceException (the document cannot be imported).
Examples:
----------------------------------------------------------
<table width=”*”>
	<tr>
		<td>More Random Text</td>
	</tr>
</table>

The table is imported with 0 width. Instead the width should not be set.
----------------------------------------------------------
<table style="font-size:;">
	<tr>
		<td>More Random Text</td>
	</tr>
</table>

NullReferenceException is thrown.
----------------------------------------------------------
<p style='padding: 3px 3px 3xp 7px;'>test</p>

IndexOutOfRangeException is thrown.

----------------------------------------------------------

 

Workaround: replace the invalid values before import: string importString = html.Replace("font-style: ;", "");
0 comments