@writergate/quill-image-uploader-nextjs 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -28,12 +28,12 @@ class ImageUploader {
|
|
28
28
|
const formats = this.quill.getFormat(range);
|
29
29
|
// if its not a code-block yet, turn it into one.
|
30
30
|
if (!formats['code-block']) {
|
31
|
-
return this.quill.
|
31
|
+
return this.quill.formatLine(range.index, range.length, 'code-block', 'user');
|
32
32
|
};
|
33
33
|
|
34
34
|
// if it was a code-block, and the user meant to remove it
|
35
35
|
// then do all the work we did up top in the keybinding function
|
36
|
-
this.quill.
|
36
|
+
this.quill.formatLine(range.index, range.length, 'code-block', false, 'user');
|
37
37
|
const { domNode } = this.quill.getLines(range.index, range.length)[0];
|
38
38
|
let nodes = [domNode];
|
39
39
|
|