且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在我的PHP代码中实现tinyMCE编辑器

更新时间:2022-10-18 11:25:35

TinyMCE是一个Javascript编辑器;它与PHP无关。您可以简单地将它放在PHP部分之外的页面中,或者使用PHP( echo )输出生成完整的TinyMCE代码(在这种情况下,您可以使用一些参数)。



我认为您也可以使用Web表单中的编辑器并组织将编辑过的内容发布到HTTP服务并使用PHP处理帖子,但这与工作没有太大区别使用常规表格和控件。这个问题在标准PHP手册中有详细描述。



-SA


 <  !DOCTYPE     html  >  
< html >
< head >
< title > 演示| Prettify.JS < / title >
< / head >
< body >
< h1 &gt ; Hello,World!< / h1 >
< / body >
< / html &GT; 跨度>


Hi,

I have tinymce editor but i have some problem in implementation.

I need steps for implement tiny mce editor in my php.

Anybody help???? :doh:

TinyMCE is a Javascript editor; it has nothing to do with PHP. You can simply put it in your page outside PHP part or generate full TinyMCE code using PHP (echo) output (in this case you can use some parameters).

I think you could also use the editor inside Web forms and organize the posting of the edited content to the HTTP service and process the post with PHP, but this is not very different from working with regular forms and controls. This matter is well described in standard PHP manual.

—SA


<!DOCTYPE html>
<html>
<head>
<title>Demo | Prettify.JS</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>