Skip to content

Commit

Permalink
Remove unnecessary Firefox workaround (#4028)
Browse files Browse the repository at this point in the history
  • Loading branch information
luin authored Feb 27, 2024
1 parent 77df7e5 commit 6026a86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# [Unreleased]

- Fix `Quill#getSemanticHTML()` for list items
- Remove unnecessary Firefox workaround

# 2.0.0-rc.2

Expand Down
10 changes: 0 additions & 10 deletions packages/quill/src/formats/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ class Image extends EmbedBlot {
return /\.(jpe?g|gif|png)$/.test(url) || /^data:image\/.+;base64/.test(url);
}

static register() {
if (/Firefox/i.test(navigator.userAgent)) {
setTimeout(() => {
// Disable image resizing in Firefox
// @ts-expect-error
document.execCommand('enableObjectResizing', false, false);
}, 1);
}
}

static sanitize(url: string) {
return sanitize(url, ['http', 'https', 'data']) ? url : '//:0';
}
Expand Down

0 comments on commit 6026a86

Please sign in to comment.