diff --git a/client/src/components/NoteInputPanel.vue b/client/src/components/NoteInputPanel.vue index cfeab0c..81cd542 100644 --- a/client/src/components/NoteInputPanel.vue +++ b/client/src/components/NoteInputPanel.vue @@ -159,11 +159,6 @@ v-on:click="$router.push(`/notes/open/${noteid}/menu/tags`)" :style="{ 'background-color':styleObject['noteBackground'] }"> - - - {{ lastVisibilityState }} - - Add Tags @@ -441,10 +436,12 @@ watch: { urlData(newVal, oldVal){ + // return + //Handle changes in URL to if(newVal.id == undefined || newVal.id != this.noteid){ - // this.closeButtonAction() + this.closeButtonAction() } //Reset all note menus on URL change @@ -684,6 +681,12 @@ this.onKeyup(event) }) + // this.editor.addEventListener("dragstart", e => { + // console.log('Dragging') + // console.log(e) + // if(){} + // }); + //Show and hide additional toolbars // this.editor.addEventListener('focus', e => { // }) diff --git a/client/src/mixins/SquireButtonFunctions.js b/client/src/mixins/SquireButtonFunctions.js index 30bc9cb..2264208 100644 --- a/client/src/mixins/SquireButtonFunctions.js +++ b/client/src/mixins/SquireButtonFunctions.js @@ -357,9 +357,21 @@ const SquireButtonFunctions = { }, setText(inText){ + + this.editor.setHTML(inText) // this.noteText = this.editor._getHTML() // this.diffNoteText = this.editor._getHTML() + + //Make sure all list items have draggable property + let container = document.getElementById('squire-id') + let listItems = container.getElementsByTagName('li') + for(let itemIndex in listItems){ + // console.log(listItems[itemIndex]) + // listItems[itemIndex].setAttribute('draggable','true') + } + // console.log(listItems) + }, getText(){ diff --git a/client/src/pages/HomePage.vue b/client/src/pages/HomePage.vue index b2b420e..39f80bb 100644 --- a/client/src/pages/HomePage.vue +++ b/client/src/pages/HomePage.vue @@ -149,23 +149,23 @@
Awesomely Generic Marketing Images - https://unDraw.co/