DCsunset / vuetify-markdown-editor

A Vue.js Component for editing and previewing markdown using Vuetify.js
MIT License
63 stars 17 forks source link

How can I set initial number of rows of the v-textarea on the Editor? #14

Closed UedaTakeyuki closed 3 years ago

UedaTakeyuki commented 3 years ago

Thank you for your great job! This editor is so helpful!

This is one help request, Is there any way to set the initial row number of v-textarea on the Editor from the App?

For example;

<Editor
  mode="preview"
  ref="editor"

  rows="1"

   hint="Hint"
  :outline="false"
  :render-config="renderConfig"
  v-model="text"
/>

Then, rows="1" affect to the initial row number of v-textarea on the Editor as follows:

<v-textarea
    solo
    flat
    :counter="counter"

    rows="1"

Thank you for your kindly help!

DCsunset commented 3 years ago

Hello, currently the initial row number cannot be set. However, I can add this feature in the future.

UedaTakeyuki commented 3 years ago

Thank you! I'm looking forward to it!

DCsunset commented 3 years ago

Hello @UedaTakeyuki, I have just released version v3.3.0 that supports the rows props. Besides, nearly all the props in v-textarea now can be used directly.

Hope the new release can solve this issue.

UedaTakeyuki commented 3 years ago

It works perfectly! Thank you for your great jobs! Moreover, I've learned how to use $attrs from your code, this solution looks so smart.