diff --git a/cms/templates/articles/new.html b/cms/templates/articles/new.html index 6666301..a836664 100644 --- a/cms/templates/articles/new.html +++ b/cms/templates/articles/new.html @@ -38,10 +38,10 @@ const renderedButton = VK.Share.button(gen) $('#vkShare').html(renderedButton) } - - $('[name="link"]').change((e) => { - appendShare($(e.target)) - }) + const $linkInput = $('[name="link"]'); + $linkInput + .on('input', (e => appendShare($(e.target)))) + .on('paste', (e => appendShare($(e.target)))) }) {% endblock %} \ No newline at end of file