This commit is contained in:
2020-04-24 19:44:21 +00:00
parent 957ff4a5d9
commit a94792d77c
2 changed files with 6 additions and 6 deletions

View File

@@ -67,7 +67,6 @@ CURRENT TODOs
@@@@@@@@@@@ ROADMAP STAGE 2: @@@@@@@@@@@ ROADMAP STAGE 2:
todo: Image toolbar component handle attachments (this is a requirement because on a phone or other browsers you might not be able to drag and drop)
todo: wiki emit input on change: currently it's manual but it should just either WATCH for changes or the replace text method should do the triggering since it's called for all ops todo: wiki emit input on change: currently it's manual but it should just either WATCH for changes or the replace text method should do the triggering since it's called for all ops
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

View File

@@ -497,6 +497,8 @@ export default {
this.selection.end - this.selection.start, this.selection.end - this.selection.start,
newString newString
); );
//emit input event to parent form for dirty tracking
this.handleInput(this.localVal);
}, },
getSelectedBlock() { getSelectedBlock() {
let selectedText = ""; let selectedText = "";
@@ -515,6 +517,8 @@ export default {
this.selection.endOfBlock - this.selection.startOfBlock, this.selection.endOfBlock - this.selection.startOfBlock,
newString newString
); );
//emit input event to parent form for dirty tracking
this.handleInput(this.localVal);
}, },
handleDoubleClick(i) { handleDoubleClick(i) {
//the purpose of this is only to change the selection if it's got an extra space to the right //the purpose of this is only to change the selection if it's got an extra space to the right
@@ -791,8 +795,8 @@ export default {
break; break;
} }
//emit input event to parent form for dirty tracking // //emit input event to parent form for dirty tracking
this.handleInput(this.localVal); // this.handleInput(this.localVal);
}, },
openLinkMenu(e) { openLinkMenu(e) {
e.preventDefault(); e.preventDefault();
@@ -849,7 +853,6 @@ export default {
window.$gz.errorHandler.handleFormError(error); window.$gz.errorHandler.handleFormError(error);
}); });
}, },
onDrop(ev) { onDrop(ev) {
//Drop image file //Drop image file
var files = Array.from(ev.dataTransfer.files); var files = Array.from(ev.dataTransfer.files);
@@ -901,8 +904,6 @@ export default {
this.replaceSelectedText("<" + url + ">\n"); this.replaceSelectedText("<" + url + ">\n");
} }
} }
//trigger dirty change
this.handleInput(this.localVal);
} }
//handle accordingly //handle accordingly