0

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);
                                        }
                                    }
                                    nukeMagicQuotes();
                                    if(isset($_REQUEST['cancel']))
                                    {
                                        $oFCKeditor->Value=null;
                                    }
                                    $oFCKeditor = new FCKeditor('txtdescribe');
                                    //$oFCKeditor->BasePath = "FCKeditor/editor/";
                                    $oFCKeditor->Value    = "";
                                    $oFCKeditor->Width    = 295;
                                    $oFCKeditor->Height   = 130;
                                    echo $oFCKeditor->CreateHtml();
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by joshisumitnet
0
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.

//EDIT

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.

Edited by diafol: n/a

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.