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

Magical tags

1 Answer 72 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Patrick Maeschli
Top achievements
Rank 1
Patrick Maeschli asked on 14 Dec 2009, 12:33 PM
Hello

One of our clients has an installation where the telerik editor is included to edit content. Now he had the issue, that the client produced some html in the design mode by using the editor functionallity. In html view the code looks like that

<p>

<table>

    <p><>&lt;&gt;&lt;&gt;

    <p> </p>

    </>

    <tbody>

        <tr>

            <td>

            <p>aösdkjflöaskjdflöaksjdf </p>

            </td>

            <td>

            <p> asdfasdfasdf</p>

            </td>

            <td>

            <p>asdfasdfasdfsadf </p>

            </td>

        </tr>

        <tr>

            <td>

            <p> asdfasdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

        </tr>

        <tr>

            <td>

            <p> asdfasdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

        </tr>

    </tbody>

    </p>

</table>

</p>

<table>

    <p><>&lt;&gt;

    <p> </p>

    </>

    <tbody>

        <tr>

            <td>

            <p>aösdkjflöaskjdflöaksjdf </p>

            </td>

            <td>

            <p> asdfasdfasdf</p>

            </td>

            <td>

            <p>asdfasdfasdfsadf </p>

            </td>

        </tr>

        <tr>

            <td>

            <p> asdfasdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

        </tr>

        <tr>

            <td>

            <p> asdfasdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

            <td>

            <p> asdf</p>

            </td>

        </tr>

    </tbody>

    </p>

</table>

Now, when the user switches from Design to html view and back a few times, every time, the brackets where duplicated.

I know, that the html isn't really a clean one, but i like to know if we can do something to avoid the duplication

regards
patrick

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Dec 2009, 11:26 AM
Hi Patrick,

Indeed, the problem is due to the invalid HTML content loaded in RadEditor. The browser tries to fix it, but without success and this misleads the ConvertToXhtml filter of RadEditor. The filter starts to produce an extra <> tag when switching to Html mode or submitting the content.

To fix the problem, you should disable the ConvertToXhtml filter (RadEditor1.DisableFilter(EditorFilters.ConvertToXhtml);) or you should instruct your users to use the XHTML validator module to validate the content and manually correct it.
Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Patrick Maeschli
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or