From a94cd94eb13d8627870a3e0431062ee7900f30c4 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 24 Apr 2020 19:27:21 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 3 ++- ayanova/src/components/wiki-control.vue | 8 +------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index a5b0d9c6..e4f7dcc5 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -72,7 +72,8 @@ todo: wiki emit input on change: currently it's manual but it should just either todo: drag and drop files on to attachments and have them stored and added automatically todo: drag and drop image file on to wiki and have it added as attachment then linked automatically - +todo: Attachments control, sb minimized on parent form open and only do it's thing when expanded like wiki + - i.e. don't bother fetching until the user expands it todo: AFTER ATTACHMENTS WIKI IMAGES diff --git a/ayanova/src/components/wiki-control.vue b/ayanova/src/components/wiki-control.vue index a0a4a529..95457e96 100644 --- a/ayanova/src/components/wiki-control.vue +++ b/ayanova/src/components/wiki-control.vue @@ -409,7 +409,6 @@ export default { return window.$gz.api.downloadUrl(p1); }); - console.log(src); return DOMPurify.sanitize(marked(src, { breaks: true })); }, onResize() { @@ -665,7 +664,6 @@ export default { { if (this.selection.hasSelection) { let s = this.getSelectedBlock(); - // console.log("Selected block:[" + s + "]"); let ret = "\n1. "; let listItem = 1; for (let i = 0; i < s.length; i++) { @@ -677,7 +675,6 @@ export default { } } ret += "\n\n"; - // console.log("RET:[" + ret + "]"); this.replaceSelectedBlock(ret); } else { this.replaceSelectedText("\n1. "); @@ -756,6 +753,7 @@ export default { //![alttexthere](https://www.ayanova.com/images/AyaNovaIcon256.png "title text here (tooltip)") { this.imageMenu = false; + this.selectedImageAttachment = null; let url = null; if (ex == 1) { //it's an attachment @@ -862,10 +860,6 @@ export default { //maybe an url? let url = ev.dataTransfer.getData("text"); let isImageUrl = false; - //console.log(ev.dataTransfer); - //todo: use alternate to "text" to look for url specifically - //if not an url then can just drop as plain text - //todo: handle both internal and external urls in the same block, because the only diff is the url itself, the rest is identical if (url) { //Attachment?