我正在使用上一个版本(4.1),只是尝试一个基本的例子:
<!DOCTYPE html>
<html>
<head><!-- CDN hosted by Cachefly -->
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init(
{
selector:'textarea',
menu : { // this is the complete default configuration
file : {title : 'File' , items : 'newdocument'},
edit : {title : 'Edit' , items : 'undo redo | cut copy paste pastetext | selectall'},
insert : {title : 'Insert', items : 'link media | template hr'},
view : {title : 'View' , items : 'visualaid'},
format : {title : 'Format', items : 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
table : {title : 'Table' , items : 'inserttable tableprops deletetable | cell row column'},
tools : {title : 'Tools' , items : 'spellchecker code'}
}
}
);
</script>
</head>
<body>
<textarea>Your content here.</textarea>
</body>
</html>
出于某种原因,&#34;插入&#34;菜单栏中没有显示菜单。我也尝试下载包含所有插件的完整软件包,在Firefox和Chrome中都有相同的结果。
答案 0 :(得分:7)
我需要将插件行添加到配置中,例如
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste"
],