Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function test_scroll() {
const quillEditor = new Quill('#editor');
const blot: Blot = quillEditor.scroll;
}
function test_setTextContents() {
const quillEditor = new Quill('#editor');
quillEditor.setText('Hello\n');
}
function test_enable_false() {
const quillEditor = new Quill('#Editor');
quillEditor.enable(false);
}
function test_enable() {
const quillEditor = new Quill('#Editor');
quillEditor.enable();
}
function test_formatText() {
const quillEditor = new Quill('#editor');
quillEditor.formatText(0, 5, 'bold', true);
}
function test_getText_substring() {
const quillEditor = new Quill('#editor');
const strValue: string = quillEditor.getText(0, 10);
}
function test_getContents() {
const quillEditor = new Quill('#editor');
const delta: DeltaStatic = quillEditor.getContents();
}
function test_getText_StartingAt() {
const quillEditor = new Quill('#editor');
const strValue: string = quillEditor.getText(10);
}
function test_setSelection() {
const quillEditor = new Quill('#editor');
quillEditor.setSelection(0, 5);
}
function test_getModule() {
const quillEditor = new Quill('#editor');
const toolbar = quillEditor.getModule('toolbar');
}