quill-mathlive-blot
v1.5.0
Published
A Blot/Extension for Quill.js to embed editable formulas with mathLive
Downloads
40
Maintainers
Readme
Quill-mathLive-blot
A Blot/Extension for Quill.js to embed editable formulas with mathLive.
Installation:
npm install quill-mathlive-blot
Usage:
- import Quill
import mathLiveBlot from "quill-mathlive-blot";
var quill = new Quill('#editor-container', {
modules: {
toolbar: [
['bold', 'italic', 'underline'],
]
},
placeholder: '',
theme: 'snow'
});
mathLiveBlot.register(Quill);
function insert() {
let selection = quill.getSelection();
quill.insertEmbed(selection.index, "mathLive", "");
}