quill
Version 2.0.2
Документация • Разработка • Участие • Интерактивная игровая площадка
Quill — это современный редактор форматированного текста, созданный для совместимости и расширяемости. Он был создан Джейсоном Ченом и Байроном Миллиганом и активно поддерживается Slab.
Чтобы начать, посетите https://quilljs.com/, где вы найдете документацию, руководства и живые демонстрации!
Создайте экземпляр нового объекта Quill с помощью селектора CSS для элемента div, который должен стать редактором.
<!-- Include Quill stylesheet -->
< link
href =" https://cdn.jsdelivr.net/npm/quill@2/dist/quill.snow.css "
rel =" stylesheet "
/>
<!-- Create the toolbar container -->
< div id =" toolbar " >
< button class =" ql-bold " > Bold </ button >
< button class =" ql-italic " > Italic </ button >
</ div >
<!-- Create the editor container -->
< div id =" editor " >
< p > Hello World! </ p >
< p > Some initial < strong > bold </ strong > text </ p >
< p > < br /> </ p >
</ div >
<!-- Include the Quill library -->
< script src =" https://cdn.jsdelivr.net/npm/quill@2/dist/quill.js " > </ script >
<!-- Initialize Quill editor -->
< script >
const quill = new Quill ( "#editor" , {
theme : "snow" ,
} ) ;
</ script >
Посетите веб-сайт Quill, чтобы получить дополнительную документацию, руководства и живую игровую площадку!
npm install quill
<!-- Main Quill library -->
< script src =" https://cdn.jsdelivr.net/npm/quill@2/dist/quill.js " > </ script >
<!-- Theme included stylesheets -->
< link
href =" https://cdn.jsdelivr.net/npm/quill@2/dist/quill.snow.css "
rel =" stylesheet "
/>
< link
href =" https://cdn.jsdelivr.net/npm/quill@2/dist/quill.bubble.css "
rel =" stylesheet "
/>
<!-- Core build with no theme, formatting, non-essential modules -->
< link
href =" https://cdn.jsdelivr.net/npm/quill@2/dist/quill.core.css "
rel =" stylesheet "
/>
< script src =" https://cdn.jsdelivr.net/npm/quill@2/dist/quill.core.js " > </ script >
Получите помощь или будьте в курсе событий.
BSD 3-пункт