在运行时遇到问题3.4.7

时间:2012-01-08 21:56:17

标签: javascript html tinymce

我下载了tinymce 3.4.7,完成了“For Dummies”中提供的所有必需的东西,但似乎即使这还不够。在我将所有代码添加到我的html页面的头部之后,它只给出了页面正文中的文本区域。它应该提供一个类似于包中给定示例的完整文本编辑器,但它不适用于我 以下是我正在使用的链接。不是真的为我工作。 http://www.tinymce.com/wiki.php/For_Dummies

<head>
<script type="text/javascript" src="D:/tinymce_3.4.7/tinymce/jscripts/tiny_mce/tiny_mce.js" ></script >
<script type="text/javascript">
tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
        plugins : "emotions,spellchecker,advhr,insertdatetime,preview", 

        // Theme options - button# indicated the row# only
        theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect",
        theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions",      
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true
});
</script>

</head>
<body>

<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>

1 个答案:

答案 0 :(得分:0)

请提供您的代码(JS + HTML)。 一个常见的错误是尝试JS代码localy(file:// c:...)。 浏览器通常具有更强的安全性,可以在本地启动时阻止JS。