2010-09-07 119 views
2
<!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是我tinyeditor代码。但它不是working.Firefox ErrorConsole正显示出这是为什么不工作TinyMCE的编辑错误

回答

0

首先要把错误TinyMCE的不defined.anybody请告诉我确定tiny_mce.js是否存在并完全加载。

你可以使用Firebug并考虑其“网络”选项卡(截图here

+0

火没有安装在我的pc ..我这样做 – Rag 2010-09-07 11:32:20

+0

但是这样的错误显示在错误控制台无效量词+; q = p}}返回o},split:function(u,s,y) {var z = this,o = z.createRng(),v,q,x;函数p(A){var t,r = A.childNodes; if(A.nodeType == 1 && A.getAttribute(“_ mce_type”)) == “书签”){返回} [对于(t = r.length-1; T> = 0;!吨 - ){p(R [T])}如果(A.nodeType = 9){如果(A .nodeType == 3 && A.nodeValue.length> 0){返回}如果(A.nodeType == 1){R = A.childNodes;若(r.length == 1个&& R [0] && R [0] == .nodeType如果(r.length || )源文件:http:// localhost/htmllatest() /admin/tinymce/jscripts/tiny_mce/tiny_mce.js Line:1 – Rag 2010-09-07 11:41:31

+0

@user类似的错误? – 2010-09-07 11:42:23

0

听起来像TinyMCE的库尚未包含在您的网页。检查你的src是否正确,并且使用Firefox中的Firebug来加载这些文件。

0

听起来像TinyMCE的的精缩版搞砸了,只尝试加载tiny_mce_src.js,以确保一切正常......

0

在插件文件夹中不存在该插件的ImageManager。移除插件行并修复问题。