From a94792d77ca9088ff47a7f7556987d77f9b5d3cf Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 24 Apr 2020 19:44:21 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 1 - ayanova/src/components/wiki-control.vue | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index e4f7dcc5..874ea584 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -67,7 +67,6 @@ CURRENT TODOs @@@@@@@@@@@ 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: drag and drop files on to attachments and have them stored and added automatically diff --git a/ayanova/src/components/wiki-control.vue b/ayanova/src/components/wiki-control.vue index 7dbea616..42614e8a 100644 --- a/ayanova/src/components/wiki-control.vue +++ b/ayanova/src/components/wiki-control.vue @@ -497,6 +497,8 @@ export default { this.selection.end - this.selection.start, newString ); + //emit input event to parent form for dirty tracking + this.handleInput(this.localVal); }, getSelectedBlock() { let selectedText = ""; @@ -515,6 +517,8 @@ export default { this.selection.endOfBlock - this.selection.startOfBlock, newString ); + //emit input event to parent form for dirty tracking + this.handleInput(this.localVal); }, handleDoubleClick(i) { //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; } - //emit input event to parent form for dirty tracking - this.handleInput(this.localVal); + // //emit input event to parent form for dirty tracking + // this.handleInput(this.localVal); }, openLinkMenu(e) { e.preventDefault(); @@ -849,7 +853,6 @@ export default { window.$gz.errorHandler.handleFormError(error); }); }, - onDrop(ev) { //Drop image file var files = Array.from(ev.dataTransfer.files); @@ -901,8 +904,6 @@ export default { this.replaceSelectedText("<" + url + ">\n"); } } - //trigger dirty change - this.handleInput(this.localVal); } //handle accordingly