The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Text editor in cPanel Error Page Manager

Discussion in 'cPanel Developers' started by jhyland87, Jun 4, 2009.

  1. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    I was wondering what type of text editor you use in the cPanel, where users can modify their pages, it counts the line and the column, Can I download this from somewhere? I dont want to take it right out of cpanel, plus the JS script is so confusing... lol

    Thanks
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Right now we use "Editarea .js"

    However, Googling it today, it seems their main website is offline at the moment.
     
  3. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    ok, that works, thank you.

    I am trying to use the API to edit the .shtml pages, im having issues with it, but im sure I can get that, my question is, is it possible to have my site use API to grab the contents of the 400.shtml? (and other shtml files for errors)
     
  4. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    NEVERMIND! :)
    PHP:
    $dir '/public_html';
    $file '400.shtml';
    $page 'test';
    $str $xmlapi->api1_query($cpanel_un'Fileman''fmpushfile', array($dir$file));
    $doc = new DOMDocument();            
    @
    $doc->loadHTML($str);        
    $s = @simplexml_import_dom($doc);
    $content = (string)$s->body->cpanelresult->data->result;
    echo 
    $content;
     
Loading...

Share This Page