[Last Call] Learn how to a build a cloud-first strategyRegister Now


Problem with fckEditor

Posted on 2009-12-18
Medium Priority
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
  • 2

Expert Comment

ID: 26079488
Insert into page_load:

LVL 10

Accepted Solution

RameshS earned 2000 total points
ID: 26093163

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

ID: 26103040

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

Author Comment

ID: 26103438
Hi Ramesh S

Could be please explain this code


like what is FCK and what is FCKTools.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

829 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