feat: import cURL on paste (#2037)
* feat: import cURL on paste * feat: import cURL on paste * feat: pasting cURL command on url field does not paste it in Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
@keyup="$emit('keyup', $event)"
|
||||
@click="$emit('click', $event)"
|
||||
@keydown="$emit('keydown', $event)"
|
||||
@paste="handlePaste"
|
||||
></div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -113,6 +114,9 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
methods: {
|
||||
handlePaste(ev) {
|
||||
this.$emit("paste", { event: ev, previousValue: this.internalValue })
|
||||
},
|
||||
handleChange() {
|
||||
this.debouncedHandler = debounce(function () {
|
||||
if (this.internalValue !== this.$refs.editor.textContent) {
|
||||
|
||||
Reference in New Issue
Block a user