Giter VIP home page Giter VIP logo

Comments (4)

bizley avatar bizley commented on June 7, 2024

Hmm, is this maybe a problem with browser? See the below sample (Firefox, Linux):

quill

As for the resize it's easy to do with css only with

.ql-editor {
    resize: vertical;
    overflow-y: scroll;
}

although you need to override default min-height property then because the resize handler appears in the middle of the box instead of the bottom corner.

from yii2-quill.

CheckeredFlag avatar CheckeredFlag commented on June 7, 2024

Interesting. I've found that it works just as you described when used as a standalone widget:
<?= \bizley\quill\Quill::widget(['name' => 'editor', 'value' => '']) ?>

However, it does not when attached to an ActiveField:
<?= $form->field($model, $attribute)->widget(\bizley\quill\Quill::class, []) ?>

The initial height shows only a single line (requiring height or min-height) and it won't grow dynamically. Additionally, the css for a resize handle has no effect.

Is this a bug? It obviously becomes much more complex under the hood when used in an ActiveForm.

from yii2-quill.

bizley avatar bizley commented on June 7, 2024

Oh, I wasn't aware of that. Looks like a bug. I'll look at this tomorrow and get back.

from yii2-quill.

bizley avatar bizley commented on June 7, 2024

Fixed in 3.2.0

from yii2-quill.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.