|
|
@ -185,10 +185,14 @@ class ChatTextEditor extends LitElement { |
|
|
|
<div class="file-picker-input-container"> |
|
|
|
<div class="file-picker-input-container"> |
|
|
|
<input
|
|
|
|
<input
|
|
|
|
@change="${e => { |
|
|
|
@change="${e => { |
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
this.insertImage(e.target.files[0]); |
|
|
|
this.insertImage(e.target.files[0]); |
|
|
|
|
|
|
|
const filePickerInput = this.shadowRoot.getElementById('file-picker')
|
|
|
|
|
|
|
|
if(filePickerInput){ |
|
|
|
|
|
|
|
filePickerInput.value = "" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}" |
|
|
|
}" |
|
|
|
|
|
|
|
id="file-picker" |
|
|
|
class="file-picker-input" type="file" name="myImage" accept="image/*" /> |
|
|
|
class="file-picker-input" type="file" name="myImage" accept="image/*" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|