Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81bd105

Browse files
committed
chore: new build
1 parent d7b7648 commit 81bd105

File tree

5 files changed

+99
-24
lines changed

5 files changed

+99
-24
lines changed

dist/vue2-editor.common.js

Lines changed: 26 additions & 6 deletions
Large diffs are not rendered by default.

dist/vue2-editor.core.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue2-editor v2.9.1
2+
* vue2-editor v2.10.0
33
* (c) 2019 David Royer
44
* Released under the MIT License.
55
*/
@@ -691,9 +691,24 @@
691691
handleSelectionChange: function handleSelectionChange(range, oldRange) {
692692
if (!range && oldRange) this.$emit("blur", this.quill);else if (range && !oldRange) this.$emit("focus", this.quill);
693693
},
694-
handleTextChange: function handleTextChange() {
694+
handleTextChange: function handleTextChange(delta, oldContents) {
695695
var editorContent = this.quill.getHTML() === "<p><br></p>" ? "" : this.quill.getHTML();
696696
this.$emit("input", editorContent);
697+
if (this.useCustomImageHandler) this.handleImageRemoved(delta, oldContents);
698+
},
699+
handleImageRemoved: function handleImageRemoved(delta, oldContents) {
700+
var _this2 = this;
701+
702+
var currrentContents = this.quill.getContents();
703+
var deletedContents = currrentContents.diff(oldContents);
704+
var operations = deletedContents.ops;
705+
operations.map(function (operation) {
706+
if (operation.insert && operation.insert.hasOwnProperty("image")) {
707+
var image = operation.insert.image;
708+
709+
_this2.$emit("imageRemoved", image);
710+
}
711+
});
697712
},
698713
checkForCustomImageHandler: function checkForCustomImageHandler() {
699714
this.useCustomImageHandler === true ? this.setupCustomImageHandler() : "";
@@ -836,7 +851,7 @@
836851
undefined
837852
);
838853

839-
var version = "2.9.1"; // Declare install function executed by Vue.use()
854+
var version = "2.10.0"; // Declare install function executed by Vue.use()
840855

841856
function install(Vue) {
842857
if (install.installed) return;

dist/vue2-editor.esm.js

Lines changed: 26 additions & 6 deletions
Large diffs are not rendered by default.

dist/vue2-editor.umd.js

Lines changed: 26 additions & 6 deletions
Large diffs are not rendered by default.

dist/vue2-editor.umd.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)