FCKeditor - How to define it's sizez?!

Discussion in 'PHP' started by redhits, Feb 28, 2008.

  1. #1
    I am working with the FCKeditor ,

    can somebody tell me how i can set up the width and height of the editor?!
    http://www.realranker.com/facts

    in all the examples i found out at that small size...
     
    redhits, Feb 28, 2008 IP
  2. phpsrilanka

    phpsrilanka Peon

    Messages:
    2
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    First create an object for FCKeditor

    Then assign required height and width to object properties

    In javascripts
    ==========

    var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
    oFCKeditor.BasePath = sBasePath ;
    oFCKeditor.Height = 300 ;
    oFCKeditor.Width = 500 ;
    oFCKeditor.Create() ;

    In PHP
    =====

    $oFCKeditor = new FCKeditor('FCKeditor1');
    $oFCKeditor->BasePath = 'fckeditor/';
    $oFCKeditor->Width = '100%' ;
    $oFCKeditor->Height = '250' ;
    $oFCKeditor->Create();
     
    phpsrilanka, Feb 28, 2008 IP
    redhits likes this.
  3. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #3
    wow, thanks a lot, and it's your first post, repp added!
     
    redhits, Feb 28, 2008 IP