Skip to content

Commit

Permalink
chore: change uploader file key
Browse files Browse the repository at this point in the history
  • Loading branch information
whyour committed Sep 27, 2019
1 parent 6c7f937 commit 51b6c4f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/quill.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/quill.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/quill.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/unit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions formats/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class Image extends EmbedBlot {
if (typeof value === 'string') {
node.setAttribute('src', this.sanitize(value));
span.setAttribute('href', this.sanitize(value));
span.setAttribute('data-fancybox-href', this.sanitize(value.origin));
span.setAttribute('data-fancybox-href', this.sanitize(value));
}
if (value.thumb) {
node.setAttribute('src', this.sanitize(value.thumb));
if (value.thumbUrl) {
node.setAttribute('src', this.sanitize(value.thumbUrl));
}
if (value.origin) {
span.setAttribute('href', this.sanitize(value.origin));
span.setAttribute('data-fancybox-href', this.sanitize(value.origin));
if (value.originUrl) {
span.setAttribute('href', this.sanitize(value.originUrl));
span.setAttribute('data-fancybox-href', this.sanitize(value.originUrl));
}
span.setAttribute('data-fancybox-type', 'image');
span.setAttribute('data-fancybox-group', 'editor');
Expand Down

0 comments on commit 51b6c4f

Please sign in to comment.