This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user