This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
elevation="2"
|
elevation="2"
|
||||||
class="aywiki pa-2 pa-sm-6 mt-2"
|
class="aywiki pa-2 pa-sm-6 mt-2"
|
||||||
>
|
>
|
||||||
<v-row>
|
<v-row v-resize="onResize">
|
||||||
<!-- DESIGNER -->
|
<!-- DESIGNER -->
|
||||||
<v-col v-if="showDesigner()" :cols="currentView == 1 ? 6 : 12">
|
<v-col v-if="showDesigner()" :cols="currentView == 1 ? 6 : 12">
|
||||||
<div>
|
<div>
|
||||||
@@ -78,17 +78,24 @@
|
|||||||
<v-icon>fa-square-full</v-icon></v-btn
|
<v-icon>fa-square-full</v-icon></v-btn
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
{{ editAreaHeight }}
|
||||||
<v-textarea
|
<v-textarea
|
||||||
|
dense
|
||||||
|
:height="editAreaHeight"
|
||||||
ref="editArea"
|
ref="editArea"
|
||||||
@input="handleInput"
|
@input="handleInput"
|
||||||
@dblclick="handleDoubleClick"
|
@dblclick="handleDoubleClick"
|
||||||
v-model="localVal"
|
v-model="localVal"
|
||||||
auto-grow
|
|
||||||
></v-textarea>
|
></v-textarea>
|
||||||
</v-col>
|
</v-col>
|
||||||
<!-- WIKI -->
|
<!-- WIKI -->
|
||||||
|
<!-- :style="'height:' + editAreaHeight + ';'" -->
|
||||||
<v-col v-if="showWiki()" :cols="currentView == 1 ? 6 : 12">
|
<v-col v-if="showWiki()" :cols="currentView == 1 ? 6 : 12">
|
||||||
<div class="aywiki" v-html="compiledOutput()"></div>
|
<div
|
||||||
|
style="height:300"
|
||||||
|
class="aywiki"
|
||||||
|
v-html="compiledOutput()"
|
||||||
|
></div>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-sheet>
|
</v-sheet>
|
||||||
@@ -114,7 +121,8 @@ export default {
|
|||||||
startOfBlock: 0, //block meaning first character after last linefeed before or at start of selection
|
startOfBlock: 0, //block meaning first character after last linefeed before or at start of selection
|
||||||
endOfBlock: 0, //end of block meaning selection expanded to end of line (unless there isn't one)
|
endOfBlock: 0, //end of block meaning selection expanded to end of line (unless there isn't one)
|
||||||
hasSelection: false
|
hasSelection: false
|
||||||
}
|
},
|
||||||
|
editAreaHeight: 300
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -127,6 +135,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
onResize() {
|
||||||
|
this.editAreaHeight = window.innerHeight / 2;
|
||||||
|
},
|
||||||
getSelectedRange() {
|
getSelectedRange() {
|
||||||
let bodyTextArea = this.$refs.editArea.$el.querySelector("textarea");
|
let bodyTextArea = this.$refs.editArea.$el.querySelector("textarea");
|
||||||
this.selection.start = bodyTextArea.selectionStart;
|
this.selection.start = bodyTextArea.selectionStart;
|
||||||
|
|||||||
Reference in New Issue
Block a user