当我对代码进行必要的更改时,下面提到的全功能示例似乎根本不起作用。有没有人遇到同样的问题?
来源:http ://www.tinymce.com/tryit/full.php
他们说它处于 Beta 阶段,但我想知道它至少应该可以工作。
我使用的是 TinyMCE 4.0.8 而不是其他两个。也尝试使用其他两个,它没有工作。
PS:我一直在使用正确的 JavaScript 路径。
这是我正在使用的代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Email Interface</title>
<!-- Place inside the <head> of your HTML -->
<script type="text/javascript" src="tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor moxiemanager"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
]
});
</script>
</head>
<body>
<p>Create an Email Message</p>
<p> </p>
<p>From address :
<input type="text" name="textfield" id="textfield" />
</p>
<p>Email Subject :
<input type="text" name="textfield2" id="textfield2" />
</p>
<p> </p>
<p> </p>
<!--<form method="post">
<textarea></textarea>
</form> -->
<form method="post" action="somepage">
<textarea name="content" style="width:100%"></textarea>
</form>
<p> </p>
</body>
</html>