도구 모음을 사용자 지정하는 방법은 WYSIHTML5입니다. 부트 스트랩 X 편집에서 사용되는 WYSIHTML5 버전의 글꼴 크기 및 이미지 삽입 단추를 비활성화하고 싶습니다.WYSIHTML5 도구 모음 사용자 지정
6
A
답변
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
}
});
이 대답은 ....... 너무 나를 위해 일한 많은 감사 – GhostRider
.. 감사합니다 –