gpt4 book ai didi

javascript - Tinymce 编辑器错误

转载 作者:行者123 更新时间:2023-11-30 06:48:26 26 4
gpt4 key购买 nike

 <!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 未定义。请告诉我为什么这不起作用

最佳答案

首先确保 tiny_mce.js 是否存在并加载。

你可以使用 Firebug并查看其“网络”选项卡(屏幕截图 here)

关于javascript - Tinymce 编辑器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3658203/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com