Skip to content

Commit

Permalink
Fixed pasting scrolling up issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBaauw committed Dec 29, 2019
1 parent e908e9d commit 2479ca7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cshub-client/src/components/quill/Quill.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
</v-tooltip>
</span>
</div>
<v-flex style="width: 100%; overflow: scroll">
<v-flex style="width: 100%; overflow: scroll" id="scrollContainer">
<v-layout>
<v-flex :xs6="showMarkdownPreview">
<!-- Shamelessly stolen from the quilljs homepage -->
Expand Down Expand Up @@ -480,6 +480,7 @@ export default class QuillEditor extends Vue {
// Create the editor
this.editorOptions.bounds = `#editor`;
this.editorOptions.modules.toolbar = `#toolbar`;
this.editorOptions.scrollingContainer = "#scrollContainer";
if (!this.editorSetup.allowEdit) {
this.editorOptions.placeholder = "";
Expand Down Expand Up @@ -662,6 +663,12 @@ export default class QuillEditor extends Vue {
<style lang="scss">
@import "../../styling/vars";
.ql-clipboard {
position: fixed !important;
left: 50% !important;
top: 50% !important;
}
.theme--dark {
svg > {
.ql-fill {
Expand Down

0 comments on commit 2479ca7

Please sign in to comment.