如何在php页面中集成CKEditor 4

时间:2013-06-30 10:15:41

标签: ckeditor

如何在php页面中集成CKEditor 4?我查看了类似的主题,例如how to add or embed CKEditor in php page,但是当我解压缩zip文件时,没有名为 ckeditor.php 的文件。

2 个答案:

答案 0 :(得分:0)

目前还没有CKEditor v4的PHP连接器,因为有些功能仍在等待从v3移植。有些人报告说v3连接器成功集成到v4中,因此您可以随时尝试使用latest 3.6.x package中的代码。

请参阅post on the form了解详情。

答案 1 :(得分:0)

样本表格:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>A Simple Page with CKEditor</title>
    <!-- Make sure the path to CKEditor is correct. -->
    <script src="../ckeditor.js"></script>
</head>
<body>
    <form>
        <textarea name="editor1" id="editor1" rows="10" cols="80">
            This is my textarea to be replaced with CKEditor.
        </textarea>
        <script>
            // Replace the <textarea id="editor1"> with a CKEditor
            // instance, using default configuration.
            CKEDITOR.replace( 'editor1' );
        </script>
    </form>
</body>
</html>
相关问题