Tinymce编辑器错误
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head> <title>Full featured
example</title> <script
type="text/javascript"
src="../tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,undo,redo,separator,bullist,numlist,separator,cut,copy,paste,separator,link,unlink,separator,code,separator,image,formatselect",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
plugins : "imagemanager",
document_base_url : "http://localhost/htmllatest/admin",
relative_urls : false,
content_css : "css/content.css", relative_urls : false,
remove_script_host : false, }); </script> </head> <body> <form
method="post" action="somepage">
<textarea name="content"
style="width:100%"> </textarea>
</form> </body> </html>
这是我的 tinyeditor 代码。但它不起作用。Firefox ErrorConsole 显示错误 Tinymce 未定义。任何人请告诉我为什么这不起作用
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head> <title>Full featured
example</title> <script
type="text/javascript"
src="../tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,undo,redo,separator,bullist,numlist,separator,cut,copy,paste,separator,link,unlink,separator,code,separator,image,formatselect",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
plugins : "imagemanager",
document_base_url : "http://localhost/htmllatest/admin",
relative_urls : false,
content_css : "css/content.css", relative_urls : false,
remove_script_host : false, }); </script> </head> <body> <form
method="post" action="somepage">
<textarea name="content"
style="width:100%"> </textarea>
</form> </body> </html>
Ths is my code for tinyeditor .But it is not working.Firefox ErrorConsole is showing the error Tinymce is not defined.anybody please tell me why this is not working
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
首先,确保tiny_mce.js 是否存在并已加载。
您可以使用 Firebug 并查看其“Net”选项卡(屏幕截图 此处)
First of all make sure whether
tiny_mce.js
is present and gets loaded at all.You could use Firebug and look into its "Net" tab (Screenshot here)
听起来tinyMCE 库尚未包含在您的页面中。检查您的 src 是否正确,以及文件是否使用 Firefox 中的 Firebug 之类的工具加载。
Sounds like the tinyMCE library hasn't been included in your page. Check your src's are correct and that the files are loaded using something like Firebug in Firefox.
听起来好像 TinyMCE 的缩小版本搞砸了,尝试仅加载 tiny_mce_src.js 以确保一切正常......
Sounds like the minified version of TinyMCE is screwed up, try to load only tiny_mce_src.js to make sure everything is alright...
插件 imagemanager 不在插件文件夹中。删除插件线并解决问题。
The plugin imagemanager in not there in the plugin folder. Remove plugin line and problem fixed.