Home > Development > Hitting the backbutton in the browser causes the fckeditor to display the HTML tags

Hitting the backbutton in the browser causes the fckeditor to display the HTML tags

January 13th, 2009

Add following code to file: FCKEditor\editor\fckeditor.html

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
 
  InitializeAPI(); // existing code line
  .......
}

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).

And then it should all work as expected.

Source: FCKEditor forum

Development , ,

  1. No comments yet.
  1. No trackbacks yet.