Git Product home page Git Product logo

Comments (11)

sylingd avatar sylingd commented on August 18, 2024 3

I have implemented a auto-resize plugin and it will be available in the next version

from react-markdown-editor-lite.

sylingd avatar sylingd commented on August 18, 2024 1

With

.editorpane {
  overflow-y: auto !important;
}

the scrollbar only shows when you reach the max height.
Seems nicer to me as now this rarely happens.

The interface will shake on windows, you can consider which one to use by yourself

from react-markdown-editor-lite.

sylingd avatar sylingd commented on August 18, 2024

I have released 1.1.0, please upgrade and have a try.
Docs here: https://github.com/HarryChen0506/react-markdown-editor-lite/blob/master/docs/plugin.md

from react-markdown-editor-lite.

barbalex avatar barbalex commented on August 18, 2024
MdEditor.use(Plugins, {
  min: 100,
  max: 1000,
})

does not seem to influence anything in my case.

But it is possible that I have not implemented it correctly: https://github.com/barbalex/apf2/blob/edeac59d7ea2a6de27519809f999c586ac98c67c/src/components/shared/MarkdownFieldFormik/MarkdownFieldFormikGrowing.js#L10-L13

from react-markdown-editor-lite.

sylingd avatar sylingd commented on August 18, 2024

Plugins -> Plugins.AutoResize

MdEditor.use(Plugins.AutoResize, {
  min: 100,
  max: 1000,
})

from react-markdown-editor-lite.

barbalex avatar barbalex commented on August 18, 2024

This (see my code) results in the following Invalid hook call error where index.js:1 seems to be in react-markdown-editor-lite:
error_invalid_hook_call

from react-markdown-editor-lite.

sylingd avatar sylingd commented on August 18, 2024

I'm sorry that I found a dependency resolution bug just now, it may be related to your situation. Try to upgrade to 1.1.1, does it resolved?

from react-markdown-editor-lite.

barbalex avatar barbalex commented on August 18, 2024

Now it works like a charm. Thanks a lot!!!!

from react-markdown-editor-lite.

barbalex avatar barbalex commented on August 18, 2024

With

.editorpane {
  overflow-y: auto !important;
}

the scrollbar only shows when you reach the max height.
Seems nicer to me as now this rarely happens.

from react-markdown-editor-lite.

wezrule avatar wezrule commented on August 18, 2024

@sylingd was this intended to also work with just the html pane?

value = "Very long text ..."
config={{
     view: {
            menu: false,
            md: false,
            html: true,
     }
}

I want to display some markdown in a html pane with a maximum height, is this possible? Could it be because this is undefined

or just not called maybe?

from react-markdown-editor-lite.

sylingd avatar sylingd commented on August 18, 2024

@wezrule Let me modify supported in 1.1.2

from react-markdown-editor-lite.

Related Issues (20)

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.