2014-06-23 13 views
4

不顯示我使用的最後一個版本(4.1),只是想一個基本的例子:「插入」菜單項,在TinyMCE的

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

出於某種原因,「插入」菜單中不顯示菜單欄。我也嘗試下載所有插件的完整軟件包,在Firefox和Chrome中都有相同的結果。

回答

7

我需要插件線添加到配置,像

plugins: [ 
     "advlist autolink lists link image charmap print preview anchor", 
     "searchreplace visualblocks code fullscreen", 
     "insertdatetime media table contextmenu paste" 
    ],