基于 React 的 Markdown 编辑器插件 for-editor

码农软件 · 软件分类 · Markdown开发包 · 2019-10-09 14:58:15

软件介绍

介绍

for-editor是一款react下的markdown编辑器,拥有预览,快捷添加标签功能,后续逐步完善更多功能。

欢迎issue,欢迎star。

for-editor 安装

npm install for-editor -S

for-editor 使用

import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import Editor from 'for-editor'
 
class App extends Component {
  constructor() {
    super()
    this.state = {
      value: ''
    }
  }
 
  handleChange(value) {
    this.setState({
      value
    })
  }
 
  render() {
    const { value } = this.state
    return (
      <Editor value={value} onChange={this.handleChange.bind(this)} />
    )
  }
}
 
ReactDOM.render(
  <Editor />,
  document.getElementById('container')
)

本文地址:https://codercto.com/soft/d/16384.html

Flexible Pattern Matching in Strings

Flexible Pattern Matching in Strings

Gonzalo Navarro、Mathieu Raffinot / Cambridge University Press / 2007-7-30 / USD 64.99

String matching problems range from the relatively simple task of searching a single text for a string of characters to searching a database for approximate occurrences of a complex pattern. Recent ye......一起来看看 《Flexible Pattern Matching in Strings》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试