vue-quill-editor icon indicating copy to clipboard operation
vue-quill-editor copied to clipboard

How may increase the editor content area size, or an old problem of textarea ?

Open be-next-hotdog opened this issue 6 years ago • 6 comments

Hello, As title, any solutions help us increase/decrease the editor content size as manipulate a textarea ? Be grateful for any tips :)

be-next-hotdog avatar May 31 '18 09:05 be-next-hotdog

min-height: 200px; to an element with class="quill-editor" ?

balalamba avatar Jun 04 '18 16:06 balalamba

i resolve this

.ql-container{
  min-height: inherit;
}
<quill-editor style="min-height:300px;" v-model="content" ref="textEditor" :options="editorOption"></quill-editor>

anrgct avatar Mar 09 '19 04:03 anrgct

@anrgct Thanks it works!!

leejaycoke avatar Jul 30 '19 11:07 leejaycoke

Setting the height of the editor while being inside a vuetify v-card causes a weird aspect:

https://i.ibb.co/5FGPsh0/Captura-de-pantalla-de-2020-04-22-17-21-28.png

Is there a way to fix it?

enbermudas avatar Apr 22 '20 20:04 enbermudas

In addition to the anwer by @anrgct I recommend to apply min-height: inherit; to the .ql-editor as well. I had the problem when min-height was only added to ql-container I could only click the first line of the textarea, below the first line the input field was inresponsive. My improvement looks like this:

.ql-container, .ql-editor {
  min-height: inherit;
}

amacado avatar Jul 12 '21 18:07 amacado

I used vue2-editor which set min-height: 200px by default. What helped me was overriding the CSS style this way -

<style lang="css">
    @import "~vue2-editor/dist/vue2-editor.css";
    .ql-editor {
        min-height: 50px !important;
    }
</style>

DragonFlameStrike avatar Jan 22 '24 10:01 DragonFlameStrike