Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: FCKeditor

  1. #1
    Senior Member DesignBox's Avatar
    Join Date
    Apr 2004
    Posts
    340
    Member #
    5659
    Does anyone have any experience with FCKeditor?
    I've run into a few problems.

    I have an admin panel where the user can add content and it works fine. But then when the user edits the content I don't know how to bring the previously entered text into the FCKeditor which results in a blank area when the user clicks on edit.

    This is my code:

    This is in my "add new course php file"

    PHP Code:
    include("FCKeditor/fckeditor.php") ;

    <?php
    $oFCKeditor 
    = new FCKeditor('description');
    $oFCKeditor->BasePath 'FCKeditor/';
    $oFCKeditor->Value '[defult value]';
    $oFCKeditor->Create();
    ?></p>
                            <p><textarea name="<?php $description['FCKeditor'] = $oFCKeditor->Create(); ?>" rows="5" cols="45">
    </textarea>
    In the edit course file I have just a normal text area at the moment because as i mentioned i don't know how to add FCKeditor for editing.

    and this is my code in that page:

    PHP Code:
    <textarea name="description" rows="5" cols="45">
    <?php echo $description?></textarea>

  2.  

  3. #2
    Senior Member DesignBox's Avatar
    Join Date
    Apr 2004
    Posts
    340
    Member #
    5659
    I figured it out

    The solution is to add this :

    PHP Code:
    $someValue ="test values";//Value you want to edit
    $oFCKeditor->Value =$someValue


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:06 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com