This commit is contained in:
2020-04-18 01:09:36 +00:00
parent 0b4ae41263
commit cab1b37af5

View File

@@ -34,11 +34,8 @@
class="aywiki pa-2 pa-sm-6 mt-2"
>
<v-row v-resize="onResize">
<!-- DESIGNER -->
<v-col
v-if="showDesigner()"
:cols="currentView == view.SPLIT_VIEW ? 6 : 12"
>
<!-- BUTTONS -->
<v-col v-if="showDesigner()" :cols="12">
<div>
<v-btn depressed tile @click="clickBold">
<v-icon>fa-bold</v-icon></v-btn
@@ -77,9 +74,16 @@
<v-icon>fa-square-full</v-icon></v-btn
>
</div>
</v-col>
<!-- DESIGNER -->
<v-col
v-if="showDesigner()"
:cols="currentView == view.SPLIT_VIEW ? 6 : 12"
>
<div :style="editStyle()">
<v-textarea
outlined
solo
no-resize
:height="editAreaHeight"
ref="editArea"
@input="handleInput"
@@ -343,10 +347,7 @@ export default {
clickQuote() {
this.getSelectedRange();
if (this.selection.hasSelection) {
console.log("quote selected text:[" + this.getSelectedText() + "]");
console.log("quote selected block:[" + this.getSelectedBlock() + "]");
if (this.selection.hasSelection) {
this.replaceSelectedBlock("\n>" + this.getSelectedBlock() + "\n");
} else {
this.replaceSelectedText("\n>");
@@ -371,20 +372,21 @@ export default {
/**
todo: split view controls across entire top of both
todo: edit only view should not take up entire window :)
todo: tweak height once get it, goal is to keep toolbar in view but fill screen as much as possible
todo: all editing controls enabled
- add image and link
- determine how local images will be handled (attachments)
baseurl setting for local images: https://marked.js.org/#/USING_ADVANCED.md#options
todo: replace all redundant clickXXX functions with a single function and a flag indicating what to do
todo: Undo / redo (ctrl-z / ctrl-y) ability?
- may need a library for this one if it's tricky to support levels of undo
todo: Add wikiContent field to form defintions at server so can hide or show in customization
- Also for dataLists? (for reporting not grid I mean)
todo: event log type just for edit wiki?
- this is because a wiki is not a discrete object in v8 so rights follow object itself and maybe it's necessary to know when wiki was edited?