mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Images Work! http://www.reactiongifs.com/r/dpfy.gif
This commit is contained in:
parent
db6ef4a630
commit
bea183d23f
1 changed files with 5 additions and 3 deletions
|
@ -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', '');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue