2016-07-24 15 views
0

我在我的應用程序中使用Tinymce編輯器的版本4.4.0的tinymce_rails。 在我的舊應用程序中,我有一些標題,如字體,字體家族,鏈接,取消鏈接等;但在新版本中,我無法查看這些內容。我需要添加什麼東西才能獲得這些字體,字體家族等;如何在tinymce編輯器中啓用字體,字體系列,鏈接和剪切/複製/粘貼(使用鼠標)?

這是我的老版編輯: enter image description here

這是我的新版本編輯: enter image description here

我希望有新的版本是一樣的舊版本。請幫幫我。 這是我的腳本:

<script language="javascript" type="text/javascript"> 
    tinyMCE.init({ 
     selector: '#report_remarks', 
     menubar:false, 
     setup : function(ed) { 
      ed.on('keydown', function(e) { 
       var charLength = $("#report_remarks_ifr").contents().find('body').text().length; 
       var remainder = 450 - charLength; 
       $('#remarks_count > span.char_remaining').text(remainder); 
       $('span#report_remarks_char_count').html("<span class='char_used'>" + charLength + "</span> of <span class='char_total'>450</span>"); 
      }); 
     } 
    }); 
</script> 

回答

相關問題