缺少TinyMCE

时间:2012-08-29 04:20:32

标签: jquery tinymce

我不知道为什么,但TinyMCE突然停止显示。它在某种程度上起作用。它隐藏了textarea,但它没有显示TinyMCE界面。 我没有得到任何jQuery / Javascript错误。我不确定发生了什么或者如何开始尝试解决这个问题。

这只是一个标准安装。我也有jGrowl和Selectbox,并且最近对它们进行了更改。也许那些是造成它的?

听说过他们造成了问题吗?

<script src="js/jquery.min.js" type="text/javascript"></script>

<!-- Load TinyMCE -->
<script type="text/javascript" src="js/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript">
$(document).ready(function() { 
$('.tinymce').tinymce({
// Location of TinyMCE script
script_url : 'js/tiny_mce/tiny_mce.js',

// General options
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,xhtmlxtras,template,advlist",

// Theme options
theme_advanced_buttons1 : "fullscreen,code,preview,print,cleanup,|,undo,redo,cut,copy,paste,pastetext,pasteword,|,search,replace,|,link,unlink,anchor,image,media,template",
theme_advanced_buttons2 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,outdent,indent,blockquote,|,fontsizeselectbullist,numlist",
theme_advanced_buttons3 : "tablecontrols,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,advhr,|,|,ltr,rtl,|,insertlayer,moveforward,movebackward,absolute",
theme_advanced_buttons4 : "styleselect,formatselect,fontselect,fontsizeselect,|,hr,|,forecolor,backcolor,|,styleprops,attribs",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
});
</script>
<!-- /TinyMCE --></head>
<body>
<textarea name='body_content' rows="15" cols="80"  class="tinymce" style='height: 400px; width: 75%;'> 
</textarea>
</body>

0 个答案:

没有答案