Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Installare FCKeditor

  1. #1

    Installare FCKeditor

    So che questo argomento l'avrete visto e rivisto sul forum, come dimostrano le numerose discussioni risultati dalla mia ricerca in merito a questo argomento.

    Ve lo sottopongo x l'ennesima volta, in quanto anche seguento le indicazioni non sono riuscito ad installarlo

    vi riporto il codice che uso x includerlo

    Codice PHP:
    echo "
    <script language=\"JavaScript\" type=\"text/javascript\" src=\"" 
    $url "Sources/fckeditor.js\"></script>        
    <script type=\"text/javascript\">
        window.onload = function(){
        var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
        oFCKeditor.BasePath = '" 
    $dir['sources'] . "fckeditor/' ;
        oFCKeditor.ReplaceTextarea() ;        
    }
    </script>
    "

    e poi nel form inserisco

    Codice PHP:
    <textarea id=\"MyTextarea\" name=\"testo\"></textarea> 
    ebbene non si installa! io ho questra struttura delle cartelle

    root/
    |
    |___ sources/
    -----|
    -----|___ fckeditor/
    ---------|
    ---------|_ fckeditor.js
    Please I need some help!
    La rovina del mondo sara' l'indifferenza. Ma chi se ne frega!!

  2. #2
    Utente di HTML.it L'avatar di telegio
    Registrato dal
    Sep 2001
    Messaggi
    2,591
    dovresti fare così...
    Codice PHP:
    <? 

    /*
     * FCKeditor - The text editor for Internet - [url]http://www.fckeditor.net[/url]
     * Copyright (C) 2003-2007 Frederico Caldeira Knabben
     *
     * == BEGIN LICENSE ==
     *
     * Licensed under the terms of any of the following licenses at your
     * choice:
     *
     *  - GNU General Public License Version 2 or later (the "GPL")
     *    [url]http://www.gnu.org/licenses/gpl.html[/url]
     *
     *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
     *    [url]http://www.gnu.org/licenses/lgpl.html[/url]
     *
     *  - Mozilla Public License Version 1.1 or later (the "MPL")
     *    [url]http://www.mozilla.org/MPL/MPL-1.1.html[/url]
     *
     * == END LICENSE ==
     *
     * Sample page.
     */

    include("fckeditor/fckeditor.php") ;
    ?>
    poi questo per creare la textarea...
    Codice PHP:
    <?php
    // Automatically calculates the editor base path based on the _samples directory.
    // This is usefull only for these samples. A real application should use something like this:
    //$oFCKeditor->BasePath = 'fckeditor/' ;    // '/fckeditor/' is the default value.
    //$sBasePath = $_SERVER['PHP_SELF'] ;
    //$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;

    $oFCKeditor = new FCKeditor('MyTextArea') ; //questo in effetti crea la textarea..
    $oFCKeditor->ToolbarSet "Basic"// questo cambia la barra degli strumenti.. puoi anche usare advanced per usalri tutti..
    //$oFCKeditor->BasePath    = $sBasePath ;
    $oFCKeditor->Value "qua ci metti il valore di default, nel caso di una variabile evita le virgolette..";
    $oFCKeditor->Create() ;

    ?>

  3. #3
    Grazie 1000 ora funziona
    La rovina del mondo sara' l'indifferenza. Ma chi se ne frega!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.