TinyMCE没有工作 - 即使他们的例子? [英] TinyMCE not working - even with their example?
问题描述
问题:
我正在尝试使用TinyMCE 4.0.12。但是无法让它工作,只是让我的文本区域完全消失。
I am attempting to use TinyMCE 4.0.12. But couldn't get it to work, it just makes my text areas disappear altogether.
到目前为止我做了什么:
我甚至从他们的页面中完全复制了他们的示例代码,它甚至无法使用它。
I even copied their example code exactly from their page, and it doesn't even work with that.
我有将所有文件提取到js / tinymce /
I have extracted all of the files to "js/tinymce/"
有什么东西显而易见我错过了吗?
Is there something obvious I am missing?
小提琴: http://jsfiddle.net/cg3e8/
JS代码:
<script type="text/javascript" src="js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste moxiemanager"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
</script>
HTML代码:
<form method="post" action="somepage">
<textarea name="content" style="width:100%"></textarea>
</form>
推荐答案
我尝试了你的小提琴,我删除了moxiemanager插件,它工作
I tried your fiddle and I removed moxiemanager plugin, and It worked
<script type="text/javascript" src="js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste "
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
</script>
<form method="post" action="somepage">
<textarea name="content" style="width:100%"></textarea>
</form>
在google上查找它我发现了这个问题它可能解决了问题
Looking on the google for it I discovered this question that It probably solves the issue
这篇关于TinyMCE没有工作 - 即使他们的例子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!