2013-08-19 18 views

cevap

3

Sen

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

başlangıç ​​parametreleri kullanarak araç çubuğu seçenekleri devre dışı bırakabilir CSS üzerinden yapabilirsiniz:

$('#[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 
}); 

Bu bilgi etiketi yapıştırılan edilmelidir:

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

ise bootstrap-wysiwyg/bootstrap3-wysiwyg kullanıyorsunuz (örneğin, gem bootstrap-wysihtml5-rails tarafından kullanılan), s Araç çubuğunun içine yuva o kadar ince sürüm 3.0 gerekir:

$('#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

Bu cevap ....... benim için çok çalıştı çok teşekkür – GhostRider

+0

.. teşekkürler –

İlgili konular