|
@@ -315,6 +315,7 @@ it .ql-editor,
|
|
|
>
|
|
|
<!-- klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].content -->
|
|
|
<quillEditor
|
|
|
+ :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[0].content`"
|
|
|
v-model="table.klScaleSaveGroup[0].content"
|
|
|
:options="editorOption"
|
|
|
class="ql-editor"
|
|
@@ -540,25 +541,6 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- getElementTop(element) {
|
|
|
- console.log("element", element);
|
|
|
- var actualTop = element.offsetTop;
|
|
|
- var current = element.parentNode;
|
|
|
- console.log("actualTop", actualTop);
|
|
|
- console.log("current", current.offsetTop);
|
|
|
- while (
|
|
|
- current != null &&
|
|
|
- current.offsetTop != "undefined" &&
|
|
|
- current.offsetTop != null
|
|
|
- ) {
|
|
|
- console.log("???", actualTop, current.offsetTop, current);
|
|
|
- actualTop += current.offsetTop;
|
|
|
-
|
|
|
- current = current.parentNode;
|
|
|
- }
|
|
|
- console.log("actualTopactualTop", actualTop);
|
|
|
- return actualTop;
|
|
|
- },
|
|
|
getDom(ref) {
|
|
|
console.log("getBoundingClientRect", document.getElementById(ref));
|
|
|
// const dom = this.getElementTop(document.getElementById(ref));
|
|
@@ -581,6 +563,7 @@ export default {
|
|
|
},
|
|
|
onEditorChange(e) {
|
|
|
e.quill.deleteText(1000, 4);
|
|
|
+ console.log(e.quill.getLength());
|
|
|
// e.quill.getLength()>1000
|
|
|
},
|
|
|
assessCommitTest() {
|