Coder Social home page Coder Social logo

Comments (5)

CHENXCHEN avatar CHENXCHEN commented on May 18, 2024

md渲染我们用的是markdown-it解析引擎,代码高亮用的highlight.js,解析函数位于这里

from mavoneditor.

liuzhushaonian avatar liuzhushaonian commented on May 18, 2024

那么获取内容呢?该如何获取已经编辑在markdown里面的内容,感谢回答

from mavoneditor.

CHENXCHEN avatar CHENXCHEN commented on May 18, 2024

我们提供了一个change事件可以获取md源文件以及解析后的html
或者你可以通过组件的引用,组件里的d_valued_render分别是md源内容和html解析内容

from mavoneditor.

liuzhushaonian avatar liuzhushaonian commented on May 18, 2024

你好,可否提供直接的获取内容方法,组建里的以及渲染过后的内容都能随时提取,因为一旦没触发这个change事件,也就拿不到那些数据了,这还是有点麻烦的

from mavoneditor.

CHENXCHEN avatar CHENXCHEN commented on May 18, 2024

@liuzhushaonian 在楼上已经提到过。

或者你可以通过refs获得组件引用实例,组件里的d_value和d_render分别是md源内容和html解析内容

from mavoneditor.

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.