Skip to content Skip to sidebar Skip to footer

How To Remove Html Code At The Time Of Page Loads Ck Editor Loading The Text In Asp.net

In my wed application, I have one page it contains ck editor when i load that page ck editor showing some fraction of seconds HTML code after it will display text in ck editor. I n

Solution 1:

CKEditorYou can use a simple javascript trick to "hide" the CKEditor until it has been initialized.

<div style="height: 400px; width: 600px;">
    <div style="display: none" id="CKPlaceHolder">
        <asp:TextBox ID="CKEditorTextBox" runat="server" TextMode="MultiLine"></asp:TextBox>
    </div>
</div>

I use 2 <div> elements. One to actually hide the editor and the first one as a placeholder to prevent the jumping of the content once the editor will be shown.

And then somewhere in JavaScript:

setTimeout(function () { document.getElementById('CKPlaceHolder').style.display = "block"; }, 500);

Post a Comment for "How To Remove Html Code At The Time Of Page Loads Ck Editor Loading The Text In Asp.net"