我使用的是TinyMCE
4.0.6 版本,它可以正常工作,IE9
但Firefox
它什么也没有显示,甚至连textarea
它连接的也没有。
我的代码是这样的:
<head>
<link href="~/Styles/CSS/Layout.css" rel="stylesheet" />
<script src="~/Scripts/Addons/TinyMCE/tinymce.min.js"></script>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor moxiemanager"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
]
});
</script>
</head>
<body>
<form action="" method="post">
<textarea name="content" ></textarea>
</form>
</body>
CSS:
textarea {
width:100%;
min-width:290px;
height:100px;
}