解决方法
如果您碰巧使用
bootstrap-wysiwyg/bootstrap3-wysiwyg(例如gem
bootstrap-wysihtml5-rails使用),从3.0版开始,您需要将其嵌套在工具栏中:
$('#some-textarea').wysihtml5({ toolbar: { "font-styles": true,// Font styling,e.g. h1,h2,etc. "emphasis": true,// Italics,bold,etc. "lists": true,// (Un)ordered lists,e.g. Bullets,Numbers. "html": false,// Button which allows you to edit the generated HTML. "link": true,// Button to insert a link. "image": true,// Button to insert an image. "color": false,// Button to change color of font "blockquote": true,// Blockquote "size": <buttonsize> // options are xs,sm,lg } });