This commit is contained in:
2020-04-24 19:27:21 +00:00
parent ba69b6029c
commit a94cd94eb1
2 changed files with 3 additions and 8 deletions

View File

@@ -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

View File

@@ -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?