This commit is contained in:
@@ -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 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: 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
|
todo: AFTER ATTACHMENTS WIKI IMAGES
|
||||||
|
|||||||
@@ -409,7 +409,6 @@ export default {
|
|||||||
return window.$gz.api.downloadUrl(p1);
|
return window.$gz.api.downloadUrl(p1);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(src);
|
|
||||||
return DOMPurify.sanitize(marked(src, { breaks: true }));
|
return DOMPurify.sanitize(marked(src, { breaks: true }));
|
||||||
},
|
},
|
||||||
onResize() {
|
onResize() {
|
||||||
@@ -665,7 +664,6 @@ export default {
|
|||||||
{
|
{
|
||||||
if (this.selection.hasSelection) {
|
if (this.selection.hasSelection) {
|
||||||
let s = this.getSelectedBlock();
|
let s = this.getSelectedBlock();
|
||||||
// console.log("Selected block:[" + s + "]");
|
|
||||||
let ret = "\n1. ";
|
let ret = "\n1. ";
|
||||||
let listItem = 1;
|
let listItem = 1;
|
||||||
for (let i = 0; i < s.length; i++) {
|
for (let i = 0; i < s.length; i++) {
|
||||||
@@ -677,7 +675,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret += "\n\n";
|
ret += "\n\n";
|
||||||
// console.log("RET:[" + ret + "]");
|
|
||||||
this.replaceSelectedBlock(ret);
|
this.replaceSelectedBlock(ret);
|
||||||
} else {
|
} else {
|
||||||
this.replaceSelectedText("\n1. ");
|
this.replaceSelectedText("\n1. ");
|
||||||
@@ -756,6 +753,7 @@ export default {
|
|||||||
//")
|
//")
|
||||||
{
|
{
|
||||||
this.imageMenu = false;
|
this.imageMenu = false;
|
||||||
|
this.selectedImageAttachment = null;
|
||||||
let url = null;
|
let url = null;
|
||||||
if (ex == 1) {
|
if (ex == 1) {
|
||||||
//it's an attachment
|
//it's an attachment
|
||||||
@@ -862,10 +860,6 @@ export default {
|
|||||||
//maybe an url?
|
//maybe an url?
|
||||||
let url = ev.dataTransfer.getData("text");
|
let url = ev.dataTransfer.getData("text");
|
||||||
let isImageUrl = false;
|
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) {
|
if (url) {
|
||||||
//Attachment?
|
//Attachment?
|
||||||
|
|||||||
Reference in New Issue
Block a user