minor cleanup
This commit is contained in:
parent
1e4b2404c4
commit
288cad3d3f
|
@ -7,7 +7,7 @@ Oqtane.RichTextEditor = {
|
||||||
|
|
||||||
const loadQuill = loadjs(['js/quill1.3.6.min.js', 'js/quill-blot-formatter.min.js'], 'Quill',
|
const loadQuill = loadjs(['js/quill1.3.6.min.js', 'js/quill-blot-formatter.min.js'], 'Quill',
|
||||||
{ async: true, returnPromise: true })
|
{ async: true, returnPromise: true })
|
||||||
.then(function () { /* foo.js & bar.js loaded */
|
.then(function () {
|
||||||
Quill.register('modules/blotFormatter', QuillBlotFormatter.default);
|
Quill.register('modules/blotFormatter', QuillBlotFormatter.default);
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
|
@ -23,7 +23,7 @@ Oqtane.RichTextEditor = {
|
||||||
|
|
||||||
new Quill(quillElement, options);
|
new Quill(quillElement, options);
|
||||||
})
|
})
|
||||||
.catch(function (pathsNotFound) { /* at least one didn't load */ });
|
.catch(function (pathsNotFound) { });
|
||||||
|
|
||||||
await loadQuill;
|
await loadQuill;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user