Code Monkey home page Code Monkey logo

Comments (6)

Vanessa219 avatar Vanessa219 commented on May 29, 2024 1

会根据 Dom 中的内容进行 MD 渲染。如果不需要的话清空 Dom 的 innerHTML 即可。

destroy 中会使用原始值清理 Dom

 this.vditor.element.innerHTML = this.vditor.originalInnerHTML;

from vditor.

ZehuaZhang avatar ZehuaZhang commented on May 29, 2024

new Vditor会出现多个实例吗,需要手动销毁吗

from vditor.

ZehuaZhang avatar ZehuaZhang commented on May 29, 2024

会根据 Dom 中的内容进行 MD 渲染。如果不需要的话清空 Dom 的 innerHTML 即可。

destroy 中会使用原始值清理 Dom

 this.vditor.element.innerHTML = this.vditor.originalInnerHTML;

我用了你的方法 每次重新创建新实例前清楚之前的innerHtml 但问题依旧存在

from vditor.

Vanessa219 avatar Vanessa219 commented on May 29, 2024

new 一个就会出现一个。你可能是多次 new 了

from vditor.

ZehuaZhang avatar ZehuaZhang commented on May 29, 2024

new 一个就会出现一个。你可能是多次 new 了

  • vditor.preview 会new一个吗?
  • new一个了 但是图表还是存在这个问题
  • 请问new完一次 如果要改new vditor 接口 怎么改 比如 darkmode, image handler,实例创造完,很多接口不能改变了
  • 还有就是 能允许自定义 引入图表插件吗 好像mermaid, flowchart 的版本比较低, 如何升级和自定义呢

from vditor.

Vanessa219 avatar Vanessa219 commented on May 29, 2024
  1. 不会
  2. 我这里重现不了,具体步骤是?
  3. 调用对应的方法
  4. PR

from vditor.

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.