Problem with fckEditor


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.
Who is Participating?
RameshSConnect With a Mentor Commented:

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

Insert into page_load:

KaranGuptaAuthor Commented:

I have tried both the approaches but none of these seems to be working. Is there any other alternative.
KaranGuptaAuthor Commented:
Hi Ramesh S

Could be please explain this code


like what is FCK and what is FCKTools.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.