We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9567929 commit a813b97Copy full SHA for a813b97
README.md
@@ -29,7 +29,25 @@ import {Editor} from 'js-wysiwyg-editor'
29
- - Now set the place that you want to use this packge
30
31
``` jsx
32
-
+import React, { useState } from 'react'
33
+import { Editor } from 'js-wysiwyg-editor'
34
+const TestingPack = () => {
35
+
36
+ const [text, setText] = useState('');
37
38
+ return (
39
+ <div className='my-8 mx-12'>
40
+ <div className="">
41
+ <Editor dataValue={text} OutputTest={setText}/>
42
+ </div>
43
+ <div className="w-full p-2 bg-white border border-gray-300 rounded-md shadow-sm">
44
+ <div dangerouslySetInnerHTML={{ __html: text.replace(/\*\*(.*?)\*\*/g, '<b>$1</b>') }} />
45
46
47
+ )
48
+}
49
50
+export default TestingPack
51
52
```
53
0 commit comments