Skip to content
Snippets Groups Projects
Commit 74438cd1 authored by Fatih Acet's avatar Fatih Acet
Browse files

Trigger change event of the markdown textarea to allow Vue catch the programmatic changes.

parent 8266c78c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -237,9 +237,12 @@ window.DropzoneInput = (function() {
};
 
const insertToTextArea = function(filename, url) {
return $(child).val(function(index, val) {
const $child = $(child);
$child.val(function(index, val) {
return val.replace(`{{${filename}}}`, url);
});
$child.trigger('change');
};
 
const appendToTextArea = function(url) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment