0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00
This commit is contained in:
Matthew Borden 2014-07-10 12:24:08 +10:00
parent db6ef4a630
commit bea183d23f

View file

@ -52,6 +52,7 @@ $(document).ready(function() {
url = $(this).parent().children('#url').first()[0];
editor.makeLink(url.value);
$(this).parent().parent().removeClass('drop-open');
$(this).parent().children('#url').attr('value', '');
});
});
@ -63,16 +64,17 @@ $(document).ready(function() {
});
this.imageDrop.on('open', function () {
$('.quit').click(function () {
$('.quit').unbind().click(function () {
$(this).parent().parent().removeClass('drop-open');
});
$('.sumbitImageURL').click(function () {
$('.sumbitImageURL').unbind().click(function () {
console.log("Passed through .sumbitImageURL");
editor = iframe.contentWindow.editor;
url = $(this).parent().children('#imageUrl').first()[0];
editor.insertImage(url.value);
$(this).parent().parent().removeClass('drop-open');
console.log(editor);
$(this).parent().children('#imageUrl').attr('value', '');
});
});