用PHP实现tinymce [英] tinymce implementation with php
问题描述
我新尝试在我的网站中使用TinyMCE,但是问题是,通过在TinyMCE网站中提到的非常基本的页面中非常简单地实现它,我得到了意外的结果.使用以下代码,浏览器仅显示带有保存按钮的大空白区域.
I newly tried to use TinyMCE in my website but the problem was that by very simple implementation of it in very basic page mentioned in the TinyMCE website I got unexpected result. With the following code the browser only display the large blank area with only a save button.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<title>TinyMCE Test</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<!-- OF COURSE YOU NEED TO ADAPT NEXT LINE TO YOUR tiny_mce.js PATH -->
<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas"
});
</script>
</head>
<body>
<!-- OF COURSE YOU NEED TO ADAPT ACTION TO WHAT PAGE YOU WANT TO LOAD WHEN HITTING
"SAVE" -->
<form method="post" action="show.php">
<p>
<textarea name="content" cols="50" rows="15">This is some content that will
be editable with TinyMCE.</textarea>
<input type="submit" value="Save" />
</p>
</form>
</body>
</html>
任何人都可以帮助我解决浏览器中显示的代码和页面的问题.我可以说我在不同的浏览器上得到了相同的结果.
Could anyone help me what the problem is with the code and the page showed in browser. I can say that I got the same result with different browsers.
推荐答案
请放置所有小的mce
library
文件
当所有文件都存在时,它将起作用.
Please put all tiny mce
library
files
it will work when all files are there.
请在此处下载最新的tiny mce
http://www.tinymce.com/tryit/full.php
这篇关于用PHP实现tinymce的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!