@writergate/quill-image-uploader-nextjs 0.0.10 → 0.0.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@writergate/quill-image-uploader-nextjs",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/enlear/quill-image-uploader-nextjs.git"
@@ -34,7 +34,7 @@ class ImageUploader {
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
36
  this.quill.format(range.index, range.length, 'code-block', false, 'user');
37
- const { domNode } = this.quill.getLine(range.index)[0];
37
+ const { domNode } = this.quill.getLines(range.index, range.length)[0];
38
38
  let nodes = [domNode];
39
39
 
40
40
  while (nodes.length > 0) {