File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ You can see below that 3 parameters are passed.
109109 },
110110
111111 methods: {
112- handleImageAdded : function (file , Editor , cursorLocation ) {
112+ handleImageAdded : function (file , Editor , cursorLocation , resetUploader ) {
113113 // An example of using FormData
114114 // NOTE: Your key could be different such as:
115115 // formData.append('file', file)
@@ -125,6 +125,7 @@ You can see below that 3 parameters are passed.
125125 .then ((result ) => {
126126 let url = result .data .url // Get url from response
127127 Editor .insertEmbed (cursorLocation, ' image' , url);
128+ resetUploader ();
128129 })
129130 .catch ((err ) => {
130131 console .log (err);
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ You can see below that 3 parameters are passed.
111111 },
112112
113113 methods: {
114- handleImageAdded : function (file , Editor , cursorLocation ) {
114+ handleImageAdded : function (file , Editor , cursorLocation , resetUploader ) {
115115 // An example of using FormData
116116 // NOTE: Your key could be different such as:
117117 // formData.append('file', file)
@@ -127,6 +127,8 @@ You can see below that 3 parameters are passed.
127127 .then ((result ) => {
128128 let url = result .data .url // Get url from response
129129 Editor .insertEmbed (cursorLocation, ' image' , url);
130+ resetUploader ();
131+
130132 })
131133 .catch ((err ) => {
132134 console .log (err);
You can’t perform that action at this time.
0 commit comments