2016-10-10 31 views
1
<script> 
    $(function() { 
     $('textarea#froala-editor').froalaEditor({ 
      toolbarInline: false, 
      toolbarButtons: [ 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', '-', 'paragraphFormat', 'align', 'formatOL', 'formatUL'], 
      toolbarVisibleWithoutSelection: true 
     }) 
    }); 
</script> 

它只是出现没有工具栏的textarea。Froala WYISWYG编辑器没有显示工具栏

回答

0

我相信如果你删除toolbarInline和toolbarVisibleWithoutSelection选项,你会没事的。

另外,还有一个函数selector.froalaEditor('toolbar.show')