2013-08-19 4 views

답변

3

당신은

ul.wysihtml5-toolbar li a[title="Insert image"] { display: none; } 
ul.wysihtml5-toolbar li.dropdown { display: none; } 
12

당신은 시작 매개 변수를 사용하여 도구 모음 옵션을 해제 할 수 있습니다 CSS를 통해 수행 할 수 있습니다

$('#[YOUR INPUT ID]').wysihtml5({ 
    "font-styles": false, //Font styling, e.g. h1, h2, etc. 
    "emphasis": true, //Italics, bold, etc. 
    "lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. 
    "html": true, //Button which allows you to edit the generated HTML. 
    "link": true, //Button to insert a link. 
    "image": false, //Button to insert an image. 
    "color": true //Button to change color of font 
}); 

이 정보는 태그에 붙여 넣을 수 있어야합니다

<head> 
    <script> HERE </scrip> 
</head> 
13

하는 경우 bootstrap-wysiwyg/bootstrap3-wysiwyg (예 : 보석 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 
    } 
}); 
+0

이 대답은 ....... 너무 나를 위해 일한 많은 감사 – GhostRider

+0

.. 감사합니다 –

관련 문제