在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:dburrows/draft-js-basic-html-editor开源软件地址:https://github.com/dburrows/draft-js-basic-html-editor开源编程语言:JavaScript 88.2%开源软件介绍:draft-js-BasicHtmlEditorBasic HTML editor using draft.js - html in, html out Proof of concept currently, not production ready! PR's welcome. Extends the Rich example from the Draft repo to accept html as its input format, and return html to an Tag SupportBlock tags: Inline tags: Install
Note: You'll also need to install WebpackThe component is built without
or create an alias for just those 2 modules
Usageimport BasicHtmlEditor from 'draft-js-basic-html-editor';
const MyEditor = () => {
const initialHtml = 'hello, <b>World</b>';
const onChange = html => console.log('updated', html);
return (
<BasicHtmlEditor
value={ initialHtml }
onChange={ onChange }
debounce={ 500 }
/>
)
} Demohttp://dburrows.github.io/draft-js-basic-html-editor/example-dist/ Development
To Do
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论