This commit is contained in:
@@ -39,7 +39,6 @@
|
|||||||
>
|
>
|
||||||
<v-row>
|
<v-row>
|
||||||
<!-- DESIGNER -->
|
<!-- DESIGNER -->
|
||||||
<!-- v-show="showDesigner()" -->
|
|
||||||
<v-col v-if="showDesigner()" :cols="currentView == 1 ? 6 : 12">
|
<v-col v-if="showDesigner()" :cols="currentView == 1 ? 6 : 12">
|
||||||
<div>
|
<div>
|
||||||
<v-btn depressed tile @click="clickBold">
|
<v-btn depressed tile @click="clickBold">
|
||||||
@@ -127,17 +126,6 @@ export default {
|
|||||||
return selectedText; //.trim();
|
return selectedText; //.trim();
|
||||||
},
|
},
|
||||||
replaceSelectedText(newString) {
|
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 = window.$gz.util.stringSplice(
|
||||||
this.localVal,
|
this.localVal,
|
||||||
this.selection.start,
|
this.selection.start,
|
||||||
@@ -148,9 +136,7 @@ export default {
|
|||||||
clickBold() {
|
clickBold() {
|
||||||
this.getSelectedRange();
|
this.getSelectedRange();
|
||||||
this.replaceSelectedText("**" + this.getSelectedText() + "**");
|
this.replaceSelectedText("**" + this.getSelectedText() + "**");
|
||||||
//console.log("BOLD CLICK, selection:", this.getSelectedText());
|
|
||||||
},
|
},
|
||||||
|
|
||||||
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
|
||||||
//because double clicking on a word with another word after it causes the space to be included
|
//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.$emit("input", val);
|
||||||
this.localVal = val;
|
this.localVal = val;
|
||||||
},
|
},
|
||||||
|
|
||||||
switchViewIcon() {
|
switchViewIcon() {
|
||||||
//return the icon that indicates what it will change to if you click it
|
//return the icon that indicates what it will change to if you click it
|
||||||
//mirror of switchview below
|
//mirror of switchview below
|
||||||
|
|||||||
Reference in New Issue
Block a user