trotl-texteditor 1.0.15 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,34 +24,29 @@ yarn add trotl-texteditor
24
24
  ## ⚡ Quick Start
25
25
 
26
26
  ```jsx
27
- import texteditor from "trotl-texteditor";
28
-
29
- const sample = [
30
- { title: 'Inbox', children: [{ title: 'Personal' }, { title: 'Work' }] },
31
- { title: 'Projects', children: [{ title: 'Alpha' }, { title: 'Beta' }] },
32
- { title: 'Archive' }
33
- ]
27
+ import Editor from "trotl-texteditor";
28
+ import "trotl-texteditor/dist/index.css";
34
29
 
35
30
  export default function Demo() {
36
31
  return (
37
- <div className="body-content">
38
- <Editor
39
- theme="light"
40
- tools={["bold", "italic", "underline", "insertUnorderedList", "insertOrderedList"]}
41
- showHeading={true}
42
- showFontSize={true}
43
- showLink={true}
44
- showUndoRedo={true}
45
- showClear={true}
46
- showPlainPaste={true}
47
- showStats={true}
48
- showCopyHtml={true}
49
- showColor={true}
50
- onChange={(payload) => console.log("editor value", payload)}
51
- showLiveHtml={true}
52
- />
32
+ <div>
33
+ <Editor
34
+ theme="light"
35
+ tools={["bold", "italic", "underline", "insertUnorderedList", "insertOrderedList"]}
36
+ showHeading={true}
37
+ showFontSize={true}
38
+ showLink={true}
39
+ showUndoRedo={true}
40
+ showClear={true}
41
+ showPlainPaste={true}
42
+ showStats={true}
43
+ showCopyHtml={true}
44
+ showColor={true}
45
+ onChange={(payload) => console.log("editor value", payload)}
46
+ showLiveHtml={true}
47
+ />
53
48
  </div>
54
- )
49
+ );
55
50
  }
56
51
  ```
57
52