Problem with fckEditor

Posted on 2009-12-18
Last Modified: 2013-11-07

I am using FCKEditor. I am entering the value and save it then if I click on back button then html tags are inserting between the text. How can I remove it.
Question by:KaranGupta
    LVL 9

    Expert Comment

    Insert into page_load:

    LVL 10

    Accepted Solution


    Add following code to file: FCKEditor\editor\fckeditor.html
    After adding the code line you will have to make sure that the javascript is downloaded to the client, so in your browser delete the local files ( tools->internet options->delete files).
    Reference: Shows only html code when pushing back button

    window.onload = function()
      // 25-11-2008 Han:  Fixing the issue with the backbutton, when the back/forward button is hit then the html to display is
      // still HTMLEncoded which will cause the control to display html control sequences in the editor.
      // The easiest solution is probably to always htmldecode the value before it is beaing displayed in the editor, this can be done
      // using the statement below.
      // FCK.LinkedField.value=FCKTools.HTMLDecode(FCK.LinkedField.value);
     FCK.LinkedField.value=FCKTools.HTMLDecode(FCK.LinkedField.value);  // THIS LINE needs to be added
      InitializeAPI(); // existing code line

    Open in new window


    Author Comment


    I have tried both the approaches but none of these seems to be working. Is there any other alternative.

    Author Comment

    Hi Ramesh S

    Could be please explain this code


    like what is FCK and what is FCKTools.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now