This commit is contained in:
@@ -34,11 +34,8 @@
|
|||||||
class="aywiki pa-2 pa-sm-6 mt-2"
|
class="aywiki pa-2 pa-sm-6 mt-2"
|
||||||
>
|
>
|
||||||
<v-row v-resize="onResize">
|
<v-row v-resize="onResize">
|
||||||
<!-- DESIGNER -->
|
<!-- BUTTONS -->
|
||||||
<v-col
|
<v-col v-if="showDesigner()" :cols="12">
|
||||||
v-if="showDesigner()"
|
|
||||||
:cols="currentView == view.SPLIT_VIEW ? 6 : 12"
|
|
||||||
>
|
|
||||||
<div>
|
<div>
|
||||||
<v-btn depressed tile @click="clickBold">
|
<v-btn depressed tile @click="clickBold">
|
||||||
<v-icon>fa-bold</v-icon></v-btn
|
<v-icon>fa-bold</v-icon></v-btn
|
||||||
@@ -77,9 +74,16 @@
|
|||||||
<v-icon>fa-square-full</v-icon></v-btn
|
<v-icon>fa-square-full</v-icon></v-btn
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
</v-col>
|
||||||
|
<!-- DESIGNER -->
|
||||||
|
<v-col
|
||||||
|
v-if="showDesigner()"
|
||||||
|
:cols="currentView == view.SPLIT_VIEW ? 6 : 12"
|
||||||
|
>
|
||||||
<div :style="editStyle()">
|
<div :style="editStyle()">
|
||||||
<v-textarea
|
<v-textarea
|
||||||
outlined
|
solo
|
||||||
|
no-resize
|
||||||
:height="editAreaHeight"
|
:height="editAreaHeight"
|
||||||
ref="editArea"
|
ref="editArea"
|
||||||
@input="handleInput"
|
@input="handleInput"
|
||||||
@@ -343,10 +347,7 @@ export default {
|
|||||||
|
|
||||||
clickQuote() {
|
clickQuote() {
|
||||||
this.getSelectedRange();
|
this.getSelectedRange();
|
||||||
if (this.selection.hasSelection) {
|
if (this.selection.hasSelection) {
|
||||||
console.log("quote selected text:[" + this.getSelectedText() + "]");
|
|
||||||
console.log("quote selected block:[" + this.getSelectedBlock() + "]");
|
|
||||||
|
|
||||||
this.replaceSelectedBlock("\n>" + this.getSelectedBlock() + "\n");
|
this.replaceSelectedBlock("\n>" + this.getSelectedBlock() + "\n");
|
||||||
} else {
|
} else {
|
||||||
this.replaceSelectedText("\n>");
|
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
|
todo: all editing controls enabled
|
||||||
- add image and link
|
- add image and link
|
||||||
- determine how local images will be handled (attachments)
|
- determine how local images will be handled (attachments)
|
||||||
baseurl setting for local images: https://marked.js.org/#/USING_ADVANCED.md#options
|
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
|
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)
|
- Also for dataLists? (for reporting not grid I mean)
|
||||||
|
|
||||||
|
|
||||||
todo: event log type just for edit wiki?
|
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?
|
- 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?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user