如何将fckeditor添加到php中动态创建的表单中?

发布于 2024-10-10 06:17:48 字数 245 浏览 0 评论 0原文

我正在 php 中创建一个动态表单。我想将 fckeditor 添加到这个动态表单中。 那么关于将 fckeditor 添加到 php 中动态创建表单的想法吗???


那么我如何从 fckeditor 发布值。这是我的实际问题

当我使用其 value 属性静态地将文本分配给 fckeditor 时,它会将其存储在数据库中,但是当我在执行后在 fckeditor 中输入文本时,它不会将其保存在数据库中。

问题是什么?

I am creating a dynamic form in php. And i want to add fckeditor to this dynamic form.
so any idea about to add fckeditor to a dynamically creating form in php???


So how can i post values from the fckeditor. That is my actual problem

When i assign text to fckeditor statically using its value property then it stores that in database but when i entered text in fckeditor after execution then it does not save it in database.

What is the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猥︴琐丶欲为 2024-10-17 06:17:48

你的网页上添加了fckeditor吗?你不知道如何发布表单值并保存到 mysql 数据库吗?

你必须发布 fckeditor 值然后保存到 mysql 数据库

have you added fckeditor on your web page? don't you know how to post form values and save to mysql database?

you have to post fckeditor value then save to mysql database

扛刀软妹 2024-10-17 06:17:48

@Ahmwad Nawaz:我使用 CKEditor (FCKEditor 的下一版本)的 jQuery 插件。请参阅此处的用法: http://www.fyneworks.com/jquery/CKEditor/#tab -用法

如果您仍然希望在 PHP 中创建并实例化 textarea,当您下载编辑器时,它应该包含一个 _samples 目录,并在其中包含一个 php目录中包含几个示例,向您展示如何操作。

@Ahmwad Nawaz: I use the jQuery plugin for CKEditor (next version of FCKEditor). See usage here: http://www.fyneworks.com/jquery/CKEditor/#tab-Usage.

If you still wish to create and instantiate the textarea within PHP, when you download the editor it should contain a _samples directory and within that a php directory with several samples in it to show you how to do it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文