Git Product home page Git Product logo

Comments (5)

sylingd avatar sylingd commented on August 18, 2024

如果希望用户不能编辑的话,为什么不直接渲染到页面上呢?

from react-markdown-editor-lite.

HarryChen0506 avatar HarryChen0506 commented on August 18, 2024

config={{
view: {
menu: false,
md: false,
html: true
}
}}, 这样就好了

from react-markdown-editor-lite.

JaneSu avatar JaneSu commented on August 18, 2024

image

config的配置按照文档写了,但是依然会有那几个控制按钮,还是能打开markdown编辑,这个有配置能消除么

刚试了下,可以通过给class加样式隐藏起来

from react-markdown-editor-lite.

HarryChen0506 avatar HarryChen0506 commented on August 18, 2024
  • 这个按钮不能通过配置消除。但是如果你只需要渲染的HTML,你可以使用组件HtmlRender
import MdEditor from 'react-markdown-editor-lite'
const HtmlRender =  MdEditor.HtmlRender
// 使用:< HtmlRender html={htmlStr} /> 或者 <MdEditor.HtmlRender html={htmlStr} />
  • 源码里HtmlRender就是用来渲染的HTML的组件.

from react-markdown-editor-lite.

Jansora avatar Jansora commented on August 18, 2024

这个问题可以通过css来解决
div..tool-bar {
display:none;
}
F!2 debug看一下

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.