Magical tags

2 posts, 0 answers
  1. Patrick Maeschli
    Patrick Maeschli avatar
    11 posts
    Member since:
    Jan 2008

    Posted 14 Dec 2009 Link to this post

    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

  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 15 Dec 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top