अपडेट किया गया उत्तर
में है कि पुट
संस्करण 1.0 के रूप में और उससे परे अब आपको टूल-टिप मॉड्यूल को डिफ़ॉल्ट रूप से शामिल करने की आवश्यकता नहीं है। इसे सक्षम करने का एक उदाहरण यह होगा।
<script>
var toolbarOptions = [
['bold', 'italic', 'underline', 'strike'], // toggled buttons
['blockquote', 'code-block'],
[{ 'header': 1 }, { 'header': 2 }], // custom button values
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
[{ 'script': 'sub'}, { 'script': 'super' }], // superscript/subscript
[{ 'indent': '-1'}, { 'indent': '+1' }], // outdent/indent
[{ 'direction': 'rtl' }], // text direction
[{ 'size': ['small', false, 'large', 'huge'] }], // custom dropdown
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
[ 'link', 'image', 'video', 'formula' ], // add's image support
[{ 'color': [] }, { 'background': [] }], // dropdown with defaults from theme
[{ 'font': [] }],
[{ 'align': [] }],
['clean'] // remove formatting button
];
var quill = new Quill('#editor', {
modules: {
toolbar: toolbarOptions
},
theme: 'snow'
});
</script>
स्रोत
2016-11-06 23:36:17
क्या हम बड़ी छवि अपलोड कर सकते हैं? और इसे सर्वर पर संग्रहीत करें और बेस 64 डेटा – hardik
के बजाय छवि का पथ सहेजें, यह पोस्ट बेहद सहायक है। मैंने अभी उस सरणी को जोड़ा है और दिखाए गए विकल्पों को सेट किया है और यह मुझे एक पूरी तरह से सेटअप बैडस संपादक देता है जो मुझे अब लगता है कि जिरा/संगम क्विल का उपयोग कर रहा है। – agm1984
उन सभी जादू तारों को परिभाषित किया गया है? –