Coder Social home page Coder Social logo

Issue on long text about react-md-editor HOT 6 OPEN

BenchBadr avatar BenchBadr commented on June 20, 2024
Issue on long text

from react-md-editor.

Comments (6)

jaywcjlove avatar jaywcjlove commented on June 20, 2024

@BenchBadr This is caused by code highlighting, which is re-rendered every time without lazy loading.

from react-md-editor.

BenchBadr avatar BenchBadr commented on June 20, 2024

I'm sorry, I can't find it by myself, how can I enable the lazy loading ?
(And tysm for the info)

from react-md-editor.

jaywcjlove avatar jaywcjlove commented on June 20, 2024

@BenchBadr Oh, there is currently no support, you need to implement it yourself

components?: {
/** Use div to replace TextArea or re-render TextArea */
textarea?: ITextAreaProps['renderTextarea'];
/**
* Override the default command element
* _`toolbar`_ < _`command[].render`_
*/
toolbar?: ICommand['render'];
/** Custom markdown preview */
preview?: (source: string, state: ContextStore, dispath: React.Dispatch<ContextStore>) => JSX.Element;

from react-md-editor.

BenchBadr avatar BenchBadr commented on June 20, 2024

I see, I'll need to have my own copy of everything.
Not that bad actually because I'll be able to do more stuff.
Thank you!

from react-md-editor.

ilkkakuivanen avatar ilkkakuivanen commented on June 20, 2024

@BenchBadr did that help in your case? I have a similar problem and custom preview does not help in my case.

from react-md-editor.

BenchBadr avatar BenchBadr commented on June 20, 2024

Honestly I didn't dig this that much since then.
I never edited a npm package before, if someone has a tutorial or something please send it to me.
I will be happy to inform you here once this will be done.

from react-md-editor.

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.