Dear Friends,

I am using FCKEditor in my website. It's working all over in website fine.

But there is one page in which it does not showing properly. I tried all things but in that page is does not showing properly.

I have one hidden div tag. When user clicks on "Edit Description" link from Edit button, hidden div tag is shown but FCKEditor is not getting shown there. Please give me some tips.

My code is to show the FCKEditor is

include_once '../FCKEditor/fckeditor.php';
                                    function nukeMagicQuotes()
                                        if (get_magic_quotes_gpc())
                                            function stripslashes_deep($value)
                                                $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
                                                return $value;
                                            $_POST = array_map('stripslashes_deep', $_POST);
                                            $_GET = array_map('stripslashes_deep', $_GET);
                                            $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
                                    $oFCKeditor = new FCKeditor('txtdescribe');
                                    //$oFCKeditor->BasePath = "FCKeditor/editor/";
                                    $oFCKeditor->Value    = "";
                                    $oFCKeditor->Width    = 295;
                                    $oFCKeditor->Height   = 130;
                                    echo $oFCKeditor->CreateHtml();

Recommended Answers

All 2 Replies

Member Avatar for diafol
include_once '../FCKEditor/fckeditor.php';

You sure the path is right? Things can get really screwy when you include files in include files.

Is the hidden div shown via JS? This should be quite straight forward, depending on how you're implementing the hide stuff. A simple classtoggle: class=hidden and then class=somethingelse on the div would be the easiest. That should avoid any nastiness.


Are you trying to create the FCKEditor object on the fly via JS? If so, remember that you can't run php, unless through ajax.

Dear Friend,

Thank you for your great help and time you spent for me.
But I found my mistake that in the style tag, I don't know exactly, there is one style
iframe {display:none;}

That is why it is not showing FCKEditor. Because FCKEditor is using iframe.

Thank you for spent time for me.

Sumit Joshi

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.