PHP和MySQL fckeditor的集成?

PHP和MySQL fckeditor的集成?,php,mysql,fckeditor,Php,Mysql,Fckeditor,我刚刚下载了这个文件夹并将其放到我的根目录中,但我不知道如何将FCKeditor安装到我的表单中。例如,我想将FCKeditor集成到下表中的About Me和My Interests表单字段中,但我不知道如何甚至如何更改FCKeditor外观。我该怎么做 我正在使用PHP和MySQL 这是HTML <form method="post" action="index.php"> <fieldset> <ul> &

我刚刚下载了这个文件夹并将其放到我的根目录中,但我不知道如何将FCKeditor安装到我的表单中。例如,我想将FCKeditor集成到下表中的About Me和My Interests表单字段中,但我不知道如何甚至如何更改FCKeditor外观。我该怎么做

我正在使用PHP和MySQL

这是HTML

<form method="post" action="index.php">
    <fieldset>
        <ul>
            <li><label for="about-me">About Me: </label>
            <textarea rows="8" cols="60" name="about-me" id="about-me"></textarea></li>

            <li><label for="my-interests">My Interests: </label>
            <textarea rows="8" cols="60" name="interests" id="interests"></textarea></li>

            <li><input type="submit" name="submit" value="Save Changes" class="save-button" />
        </ul>
    </fieldset>
</form>

  • 关于我:
  • 我的兴趣:
是将FCKeditor集成到PHP中的很好指南。包括文件、创建对象、指定一些参数,就可以开始了。这很简单,也很有用

我希望这有帮助

是将FCKeditor集成到PHP中的很好指南。包括文件、创建对象、指定一些参数,就可以开始了。这很简单,也很有用


我希望这有帮助

CKEdit只是一个JavaScript插件。为了在PHP和MySQL中使用它,您实际上不需要采取任何特定的预防措施。您可以按照以下指南操作:

负责人:


正文:


FCKeditor的变量=新FCKeditor('FCKeditor1');
oFCKeditor.BasePath=“/fckeditor/”;
oFCKeditor.Create();

在上面的示例中,您将“FCKeditor1”替换为“about me”,再次替换为“interest”字段。

CKEdit只是一个JavaScript插件。为了在PHP和MySQL中使用它,您实际上不需要采取任何特定的预防措施。您可以按照以下指南操作:

负责人:


正文:


FCKeditor的变量=新FCKeditor('FCKeditor1');
oFCKeditor.BasePath=“/fckeditor/”;
oFCKeditor.Create();

将上述示例中的“FCKeditor1”替换为“关于我”,再次替换为“兴趣”字段。

例如,我执行下一个操作:

首先写在代码的第节上

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>

第二

<textarea cols="80" id="FCKeditor1" name="FCKeditor1" rows="10"></textarea>
<script type="text/javascript">
    CKEDITOR.replace( 'FCKeditor1',{
        toolbar : 'Full',
        skin:'kama'
    } );
</script>

CKEDITOR.replace('fckeditor'1'{
工具栏:“已满”,
皮肤:“卡玛”
} );

在我的浏览器ckeditor上看到该操作之后。

例如,我执行下一个操作:

首先写在代码的第节上

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>

第二

<textarea cols="80" id="FCKeditor1" name="FCKeditor1" rows="10"></textarea>
<script type="text/javascript">
    CKEDITOR.replace( 'FCKeditor1',{
        toolbar : 'Full',
        skin:'kama'
    } );
</script>

CKEDITOR.replace('fckeditor'1'{
工具栏:“已满”,
皮肤:“卡玛”
} );

之后,我在我的浏览器ckeditor上看到了这个动作。

如果您使用的是Php,那么它非常简单

<?php
include_once(“fckeditor/fckeditor.php”) ;

$sBasePath = $_SERVER[ 'PHP_SELF' ] ;                                                       
$oFCKeditor = new FCKeditor('FCKeditor1') ;                                                   
$oFCKeditor->BasePath = 'fckeditor/' ;                                                       
$oFCKeditor->ToolbarSet = 'Basic';                                                            
$oFCKeditor->Height = 200;                                                                     
$oFCKeditor->Width  = 400;                                                                     
$oFCKeditor->Value = '<p>Now the FCKeditor is available and ready to use. So, just insert the        following code in your p</p>' ;
$oFCKeditor->Create() ;


?>

将此代码放入html中


有关更多详细信息,请参阅我博客中的一篇文章:

如果您使用的是Php,那么它非常简单

<?php
include_once(“fckeditor/fckeditor.php”) ;

$sBasePath = $_SERVER[ 'PHP_SELF' ] ;                                                       
$oFCKeditor = new FCKeditor('FCKeditor1') ;                                                   
$oFCKeditor->BasePath = 'fckeditor/' ;                                                       
$oFCKeditor->ToolbarSet = 'Basic';                                                            
$oFCKeditor->Height = 200;                                                                     
$oFCKeditor->Width  = 400;                                                                     
$oFCKeditor->Value = '<p>Now the FCKeditor is available and ready to use. So, just insert the        following code in your p</p>' ;
$oFCKeditor->Create() ;


?>

将此代码放入html中

有关更多详细信息,请访问我博客中的一篇文章: