basic-braft-editor
v1.0.6
Published
Rich Text Editor Based On Draft.js
Downloads
2
Maintainers
Readme
basic-braft-editor
增加提示功能
使用
import { FC } from "react";
import BasicBraftEditor from 'basic-braft-editor';
const mentions = Array(100).fill('*').map((v, i) => ({
label: `参数${i + 1}`,
value: `code${i + 1}`
}))
const Demo: FC = () => {
return (
<BasicBraftEditor
className="basic-braft-editor-box"
mentions={mentions}
trigger="$"
mentionsDisplay="${__value__}"
/>
);
}
效果