This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
>
|
||||
<v-row>
|
||||
<!-- DESIGNER -->
|
||||
<!-- v-show="showDesigner()" -->
|
||||
<v-col v-if="showDesigner()" :cols="currentView == 1 ? 6 : 12">
|
||||
<div>
|
||||
<v-btn depressed tile @click="clickBold">
|
||||
@@ -127,17 +126,6 @@ export default {
|
||||
return selectedText; //.trim();
|
||||
},
|
||||
replaceSelectedText(newString) {
|
||||
// @param {String} source string
|
||||
// @param {number} start Index at which to start changing the string.
|
||||
// @param {number} delCount An integer indicating the number of old chars to remove.
|
||||
// @param {string} newSubStr The String that is spliced in.
|
||||
// @return {string} A new string with the spliced substring.
|
||||
//stringSplice: function(source, start, delCount, newSubStr) {
|
||||
|
||||
//says replace but in some cases it's just an insert if there is no selection:
|
||||
|
||||
//has a selection so replace it is:
|
||||
|
||||
this.localVal = window.$gz.util.stringSplice(
|
||||
this.localVal,
|
||||
this.selection.start,
|
||||
@@ -148,9 +136,7 @@ export default {
|
||||
clickBold() {
|
||||
this.getSelectedRange();
|
||||
this.replaceSelectedText("**" + this.getSelectedText() + "**");
|
||||
//console.log("BOLD CLICK, selection:", this.getSelectedText());
|
||||
},
|
||||
|
||||
handleDoubleClick(i) {
|
||||
//the purpose of this is only to change the selection if it's got an extra space to the right
|
||||
//because double clicking on a word with another word after it causes the space to be included
|
||||
@@ -168,7 +154,6 @@ export default {
|
||||
this.$emit("input", val);
|
||||
this.localVal = val;
|
||||
},
|
||||
|
||||
switchViewIcon() {
|
||||
//return the icon that indicates what it will change to if you click it
|
||||
//mirror of switchview below
|
||||
|
||||
Reference in New Issue
Block a user